@@ -23,7 +23,7 @@ describe('debounce', () => {
2323 ) ;
2424 const street = addressForm . street ( ) ;
2525
26- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
26+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
2727 expect ( street . controlValue ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
2828 expect ( street . value ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
2929 } ) ;
@@ -39,7 +39,7 @@ describe('debounce', () => {
3939 ) ;
4040 const street = addressForm . street ( ) ;
4141
42- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
42+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
4343 expect ( street . controlValue ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
4444 expect ( street . value ( ) ) . toBe ( '' ) ;
4545
@@ -58,7 +58,7 @@ describe('debounce', () => {
5858 ) ;
5959 const street = addressForm . street ( ) ;
6060
61- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
61+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
6262 expect ( street . controlValue ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
6363 expect ( street . value ( ) ) . toBe ( '' ) ;
6464
@@ -79,7 +79,7 @@ describe('debounce', () => {
7979 ) ;
8080 const street = addressForm . street ( ) ;
8181
82- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
82+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
8383 expect ( street . controlValue ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
8484 expect ( street . value ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
8585 } ) ;
@@ -95,7 +95,7 @@ describe('debounce', () => {
9595 ) ;
9696 const street = addressForm . street ( ) ;
9797
98- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
98+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
9999 expect ( street . controlValue ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
100100 expect ( street . value ( ) ) . toBe ( '' ) ;
101101
@@ -115,7 +115,7 @@ describe('debounce', () => {
115115 ) ;
116116 const street = addressForm . street ( ) ;
117117
118- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
118+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
119119 expect ( street . controlValue ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
120120 expect ( street . value ( ) ) . toBe ( '' ) ;
121121
@@ -142,10 +142,10 @@ describe('debounce', () => {
142142 ) ;
143143 const street = addressForm . street ( ) ;
144144
145- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
145+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
146146 expect ( street . value ( ) ) . toBe ( '' ) ;
147147
148- street . setControlValue ( '2000 N Shoreline Blvd' ) ;
148+ street . controlValue . set ( '2000 N Shoreline Blvd' ) ;
149149 expect ( street . value ( ) ) . toBe ( '' ) ;
150150
151151 first . resolve ( ) ;
@@ -172,7 +172,7 @@ describe('debounce', () => {
172172 const street = addressForm . street ( ) ;
173173
174174 // Set `controlValue` which will trigger a debounce update.
175- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
175+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
176176 expect ( street . controlValue ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
177177 expect ( street . value ( ) ) . toBe ( '' ) ;
178178
@@ -204,10 +204,10 @@ describe('debounce', () => {
204204 ) ;
205205 const street = addressForm . street ( ) ;
206206
207- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
207+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
208208 expect ( abortSpy ) . not . toHaveBeenCalled ( ) ;
209209
210- street . setControlValue ( '2000 N Shoreline Blvd' ) ;
210+ street . controlValue . set ( '2000 N Shoreline Blvd' ) ;
211211 expect ( abortSpy ) . toHaveBeenCalledTimes ( 1 ) ;
212212
213213 resolve ( ) ;
@@ -230,7 +230,7 @@ describe('debounce', () => {
230230 ) ;
231231 const street = addressForm . street ( ) ;
232232
233- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
233+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
234234 expect ( abortSpy ) . not . toHaveBeenCalled ( ) ;
235235
236236 street . markAsTouched ( ) ;
@@ -255,7 +255,7 @@ describe('debounce', () => {
255255 ) ;
256256 const street = addressForm . street ( ) ;
257257
258- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
258+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
259259 expect ( addListenerSpy ) . toHaveBeenCalledOnceWith ( 'abort' , jasmine . any ( Function ) , {
260260 once : true ,
261261 } ) ;
@@ -280,7 +280,7 @@ describe('debounce', () => {
280280 ) ;
281281 const street = addressForm . street ( ) ;
282282
283- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
283+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
284284 expect ( street . controlValue ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
285285 expect ( street . value ( ) ) . toBe ( '' ) ;
286286
@@ -300,7 +300,7 @@ describe('debounce', () => {
300300 ) ;
301301 const street = addressForm . street ( ) ;
302302
303- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
303+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
304304 expect ( street . controlValue ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
305305 expect ( street . value ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
306306 } ) ;
@@ -316,7 +316,7 @@ describe('debounce', () => {
316316 options ( ) ,
317317 ) ;
318318
319- addressForm ( ) . setControlValue ( { street : '1600 Amphitheatre Pkwy' } ) ;
319+ addressForm ( ) . controlValue . set ( { street : '1600 Amphitheatre Pkwy' } ) ;
320320 expect ( addressForm ( ) . controlValue ( ) ) . toEqual ( { street : '1600 Amphitheatre Pkwy' } ) ;
321321 expect ( addressForm ( ) . value ( ) ) . toEqual ( { street : '' } ) ;
322322
@@ -334,10 +334,10 @@ describe('debounce', () => {
334334 options ( ) ,
335335 ) ;
336336
337- addressForm . street ( ) . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
337+ addressForm . street ( ) . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
338338 expect ( addressForm ( ) . value ( ) ) . toEqual ( { street : '' , city : '' } ) ;
339339
340- addressForm . city ( ) . setControlValue ( 'Mountain View' ) ;
340+ addressForm . city ( ) . controlValue . set ( 'Mountain View' ) ;
341341 expect ( addressForm ( ) . value ( ) ) . toEqual ( { street : '' , city : 'Mountain View' } ) ;
342342
343343 await timeout ( 0 ) ;
@@ -361,7 +361,7 @@ describe('debounce', () => {
361361 ) ;
362362 const street = addressForm . street ( ) ;
363363
364- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
364+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
365365 expect ( street . controlValue ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
366366 expect ( street . value ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
367367 } ) ;
@@ -384,7 +384,7 @@ describe('debounce', () => {
384384 ) ;
385385 const street = addressForm . street ( ) ;
386386
387- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
387+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
388388 expect ( street . controlValue ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
389389 expect ( street . value ( ) ) . toBe ( '' ) ;
390390
@@ -417,12 +417,12 @@ describe('debounce', () => {
417417 ) ;
418418 const street = addressForm . street ( ) ;
419419
420- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
420+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
421421 expect ( street . controlValue ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
422422 expect ( street . value ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
423423
424424 debounced . set ( true ) ;
425- street . setControlValue ( '2000 N Shoreline Blvd' ) ;
425+ street . controlValue . set ( '2000 N Shoreline Blvd' ) ;
426426 expect ( street . controlValue ( ) ) . toBe ( '2000 N Shoreline Blvd' ) ;
427427 expect ( street . value ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
428428
@@ -448,15 +448,15 @@ describe('debounce', () => {
448448 ) ;
449449 const street = addressForm . street ( ) ;
450450
451- street . setControlValue ( '1600 Amphitheatre Pkwy' ) ;
451+ street . controlValue . set ( '1600 Amphitheatre Pkwy' ) ;
452452 expect ( street . controlValue ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
453453 expect ( street . value ( ) ) . toBe ( '' ) ;
454454
455455 await timeout ( 0 ) ;
456456 expect ( street . value ( ) ) . toBe ( '1600 Amphitheatre Pkwy' ) ;
457457
458458 debounced . set ( false ) ;
459- street . setControlValue ( '2000 N Shoreline Blvd' ) ;
459+ street . controlValue . set ( '2000 N Shoreline Blvd' ) ;
460460 expect ( street . value ( ) ) . toBe ( '2000 N Shoreline Blvd' ) ;
461461 } ) ;
462462 } ) ;
0 commit comments