@@ -246,7 +246,7 @@ describe("ngAnimate", function() {
246
246
$timeout . flush ( ) ;
247
247
expect ( child . hasClass ( 'ng-enter' ) ) . toBe ( true ) ;
248
248
expect ( child . hasClass ( 'ng-enter-active' ) ) . toBe ( true ) ;
249
- browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
249
+ browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
250
250
}
251
251
252
252
expect ( element . contents ( ) . length ) . toBe ( 1 ) ;
@@ -263,7 +263,7 @@ describe("ngAnimate", function() {
263
263
$timeout . flush ( ) ;
264
264
expect ( child . hasClass ( 'ng-leave' ) ) . toBe ( true ) ;
265
265
expect ( child . hasClass ( 'ng-leave-active' ) ) . toBe ( true ) ;
266
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
266
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
267
267
}
268
268
269
269
expect ( element . contents ( ) . length ) . toBe ( 0 ) ;
@@ -299,7 +299,7 @@ describe("ngAnimate", function() {
299
299
$timeout . flush ( ) ;
300
300
expect ( child . hasClass ( 'ng-hide-remove' ) ) . toBe ( true ) ;
301
301
expect ( child . hasClass ( 'ng-hide-remove-active' ) ) . toBe ( true ) ;
302
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
302
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
303
303
}
304
304
expect ( child . hasClass ( 'ng-hide-remove' ) ) . toBe ( false ) ;
305
305
expect ( child . hasClass ( 'ng-hide-remove-active' ) ) . toBe ( false ) ;
@@ -316,7 +316,7 @@ describe("ngAnimate", function() {
316
316
$timeout . flush ( ) ;
317
317
expect ( child . hasClass ( 'ng-hide-add' ) ) . toBe ( true ) ;
318
318
expect ( child . hasClass ( 'ng-hide-add-active' ) ) . toBe ( true ) ;
319
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
319
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
320
320
}
321
321
expect ( child ) . toBeHidden ( ) ;
322
322
} ) ) ;
@@ -336,7 +336,7 @@ describe("ngAnimate", function() {
336
336
337
337
expect ( child . attr ( 'class' ) ) . toContain ( 'ng-enter' ) ;
338
338
expect ( child . attr ( 'class' ) ) . toContain ( 'ng-enter-active' ) ;
339
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
339
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
340
340
$timeout . flush ( ) ;
341
341
342
342
//move
@@ -347,30 +347,30 @@ describe("ngAnimate", function() {
347
347
348
348
expect ( child . attr ( 'class' ) ) . toContain ( 'ng-move' ) ;
349
349
expect ( child . attr ( 'class' ) ) . toContain ( 'ng-move-active' ) ;
350
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
350
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
351
351
$timeout . flush ( ) ;
352
352
353
353
//hide
354
354
$animate . addClass ( child , 'ng-hide' ) ;
355
355
$timeout . flush ( ) ;
356
356
expect ( child . attr ( 'class' ) ) . toContain ( 'ng-hide-add' ) ;
357
357
expect ( child . attr ( 'class' ) ) . toContain ( 'ng-hide-add-active' ) ;
358
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
358
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
359
359
360
360
//show
361
361
$animate . removeClass ( child , 'ng-hide' ) ;
362
362
$timeout . flush ( ) ;
363
363
expect ( child . attr ( 'class' ) ) . toContain ( 'ng-hide-remove' ) ;
364
364
expect ( child . attr ( 'class' ) ) . toContain ( 'ng-hide-remove-active' ) ;
365
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
365
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
366
366
367
367
//leave
368
368
$animate . leave ( child ) ;
369
369
$rootScope . $digest ( ) ;
370
370
$timeout . flush ( ) ;
371
371
expect ( child . attr ( 'class' ) ) . toContain ( 'ng-leave' ) ;
372
372
expect ( child . attr ( 'class' ) ) . toContain ( 'ng-leave-active' ) ;
373
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
373
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
374
374
$timeout . flush ( ) ;
375
375
} ) ) ;
376
376
@@ -416,7 +416,7 @@ describe("ngAnimate", function() {
416
416
417
417
if ( $sniffer . transitions ) {
418
418
expect ( element . children ( ) . length ) . toBe ( 1 ) ; //still animating
419
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
419
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
420
420
}
421
421
$timeout . flush ( 2000 ) ;
422
422
$timeout . flush ( 2000 ) ;
@@ -433,7 +433,7 @@ describe("ngAnimate", function() {
433
433
child . addClass ( 'custom-delay ng-hide' ) ;
434
434
$animate . removeClass ( child , 'ng-hide' ) ;
435
435
if ( $sniffer . transitions ) {
436
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
436
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
437
437
}
438
438
$timeout . flush ( 2000 ) ;
439
439
@@ -459,7 +459,7 @@ describe("ngAnimate", function() {
459
459
expect ( completed ) . toBe ( false ) ;
460
460
if ( $sniffer . transitions ) {
461
461
$timeout . flush ( ) ;
462
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
462
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
463
463
}
464
464
$timeout . flush ( ) ;
465
465
@@ -520,7 +520,7 @@ describe("ngAnimate", function() {
520
520
$animate . removeClass ( element , 'ng-hide' ) ;
521
521
522
522
if ( $sniffer . transitions ) {
523
- browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
523
+ browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
524
524
}
525
525
$timeout . flush ( 2000 ) ;
526
526
$timeout . flush ( 20000 ) ;
@@ -562,7 +562,7 @@ describe("ngAnimate", function() {
562
562
563
563
$animate . removeClass ( element , 'ng-hide' ) ;
564
564
if ( $sniffer . animations ) {
565
- browserTrigger ( element , 'animationend' , { timeStamp : Date . now ( ) + 4000 , elapsedTime : 4000 } ) ;
565
+ browserTrigger ( element , 'animationend' , { timeStamp : Date . now ( ) + 4000 , elapsedTime : 4 } ) ;
566
566
}
567
567
expect ( element ) . toBeShown ( ) ;
568
568
} ) ) ;
@@ -585,7 +585,7 @@ describe("ngAnimate", function() {
585
585
586
586
$animate . removeClass ( element , 'ng-hide' ) ;
587
587
if ( $sniffer . animations ) {
588
- browserTrigger ( element , 'animationend' , { timeStamp : Date . now ( ) + 6000 , elapsedTime : 6000 } ) ;
588
+ browserTrigger ( element , 'animationend' , { timeStamp : Date . now ( ) + 6000 , elapsedTime : 6 } ) ;
589
589
}
590
590
expect ( element ) . toBeShown ( ) ;
591
591
} ) ) ;
@@ -608,7 +608,7 @@ describe("ngAnimate", function() {
608
608
609
609
$animate . removeClass ( element , 'ng-hide' ) ;
610
610
if ( $sniffer . animations ) {
611
- browserTrigger ( element , 'animationend' , { timeStamp : Date . now ( ) + 2000 , elapsedTime : 2000 } ) ;
611
+ browserTrigger ( element , 'animationend' , { timeStamp : Date . now ( ) + 2000 , elapsedTime : 2 } ) ;
612
612
}
613
613
expect ( element ) . toBeShown ( ) ;
614
614
} ) ) ;
@@ -633,7 +633,7 @@ describe("ngAnimate", function() {
633
633
634
634
$animate . removeClass ( element , 'ng-hide' ) ;
635
635
if ( $sniffer . transitions ) {
636
- browserTrigger ( element , 'animationend' , { timeStamp : Date . now ( ) + 20000 , elapsedTime : 20000 } ) ;
636
+ browserTrigger ( element , 'animationend' , { timeStamp : Date . now ( ) + 20000 , elapsedTime : 10 } ) ;
637
637
}
638
638
expect ( element ) . toBeShown ( ) ;
639
639
} ) ) ;
@@ -682,7 +682,7 @@ describe("ngAnimate", function() {
682
682
$timeout . flush ( ) ;
683
683
expect ( element . hasClass ( 'ng-hide-add' ) ) . toBe ( true ) ;
684
684
expect ( element . hasClass ( 'ng-hide-add-active' ) ) . toBe ( true ) ;
685
- browserTrigger ( element , 'animationend' , { timeStamp : Date . now ( ) + 2000 , elapsedTime : 2000 } ) ;
685
+ browserTrigger ( element , 'animationend' , { timeStamp : Date . now ( ) + 2000 , elapsedTime : 2 } ) ;
686
686
}
687
687
688
688
expect ( element . hasClass ( 'ng-hide-remove-active' ) ) . toBe ( false ) ;
@@ -774,7 +774,7 @@ describe("ngAnimate", function() {
774
774
775
775
$animate . removeClass ( element , 'ng-hide' ) ;
776
776
if ( $sniffer . transitions ) {
777
- browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
777
+ browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
778
778
}
779
779
expect ( element ) . toBeShown ( ) ;
780
780
} ) ) ;
@@ -796,9 +796,9 @@ describe("ngAnimate", function() {
796
796
if ( $sniffer . transitions ) {
797
797
expect ( element ) . toBeHidden ( ) ;
798
798
var now = Date . now ( ) ;
799
- browserTrigger ( element , 'transitionend' , { timeStamp : now + 1000 , elapsedTime : 1000 } ) ;
800
- browserTrigger ( element , 'transitionend' , { timeStamp : now + 1000 , elapsedTime : 1000 } ) ;
801
- browserTrigger ( element , 'transitionend' , { timeStamp : now + 2000 , elapsedTime : 2000 } ) ;
799
+ browserTrigger ( element , 'transitionend' , { timeStamp : now + 1000 , elapsedTime : 1 } ) ;
800
+ browserTrigger ( element , 'transitionend' , { timeStamp : now + 1000 , elapsedTime : 1 } ) ;
801
+ browserTrigger ( element , 'transitionend' , { timeStamp : now + 2000 , elapsedTime : 2 } ) ;
802
802
}
803
803
expect ( element ) . toBeShown ( ) ;
804
804
} ) ) ;
@@ -830,9 +830,9 @@ describe("ngAnimate", function() {
830
830
$animate . removeClass ( element , 'ng-hide' ) ;
831
831
if ( $sniffer . transitions ) {
832
832
var now = Date . now ( ) ;
833
- browserTrigger ( element , 'transitionend' , { timeStamp : now + 1000 , elapsedTime : 1000 } ) ;
834
- browserTrigger ( element , 'transitionend' , { timeStamp : now + 3000 , elapsedTime : 3000 } ) ;
835
- browserTrigger ( element , 'transitionend' , { timeStamp : now + 3000 , elapsedTime : 3000 } ) ;
833
+ browserTrigger ( element , 'transitionend' , { timeStamp : now + 1000 , elapsedTime : 1 } ) ;
834
+ browserTrigger ( element , 'transitionend' , { timeStamp : now + 3000 , elapsedTime : 3 } ) ;
835
+ browserTrigger ( element , 'transitionend' , { timeStamp : now + 3000 , elapsedTime : 3 } ) ;
836
836
}
837
837
expect ( element ) . toBeShown ( ) ;
838
838
} ) ) ;
@@ -854,7 +854,7 @@ describe("ngAnimate", function() {
854
854
855
855
$animate . removeClass ( element , 'ng-hide' ) ;
856
856
if ( $sniffer . transitions ) {
857
- browserTrigger ( element , 'animationend' , { timeStamp : Date . now ( ) + 11000 , elapsedTime : 11000 } ) ;
857
+ browserTrigger ( element , 'animationend' , { timeStamp : Date . now ( ) + 11000 , elapsedTime : 11 } ) ;
858
858
}
859
859
expect ( element ) . toBeShown ( ) ;
860
860
} ) ) ;
@@ -876,7 +876,7 @@ describe("ngAnimate", function() {
876
876
$timeout . flush ( ) ;
877
877
expect ( element . hasClass ( 'ng-hide-remove' ) ) . toBe ( true ) ;
878
878
expect ( element . hasClass ( 'ng-hide-remove-active' ) ) . toBe ( true ) ;
879
- browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
879
+ browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
880
880
}
881
881
expect ( element . hasClass ( 'ng-hide-remove' ) ) . toBe ( false ) ;
882
882
expect ( element . hasClass ( 'ng-hide-remove-active' ) ) . toBe ( false ) ;
@@ -976,7 +976,7 @@ describe("ngAnimate", function() {
976
976
expect ( element . hasClass ( 'abc' ) ) . toBe ( true ) ;
977
977
expect ( element . hasClass ( 'ng-enter' ) ) . toBe ( true ) ;
978
978
expect ( element . hasClass ( 'ng-enter-active' ) ) . toBe ( true ) ;
979
- browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 22000 , elapsedTime : 22000 } ) ;
979
+ browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 22000 , elapsedTime : 22 } ) ;
980
980
$timeout . flush ( ) ;
981
981
}
982
982
expect ( element . hasClass ( 'abc' ) ) . toBe ( true ) ;
@@ -990,7 +990,7 @@ describe("ngAnimate", function() {
990
990
expect ( element . hasClass ( 'xyz' ) ) . toBe ( true ) ;
991
991
expect ( element . hasClass ( 'ng-enter' ) ) . toBe ( true ) ;
992
992
expect ( element . hasClass ( 'ng-enter-active' ) ) . toBe ( true ) ;
993
- browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 11000 , elapsedTime : 11000 } ) ;
993
+ browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 11000 , elapsedTime : 11 } ) ;
994
994
$timeout . flush ( ) ;
995
995
}
996
996
expect ( element . hasClass ( 'xyz' ) ) . toBe ( true ) ;
@@ -1022,7 +1022,7 @@ describe("ngAnimate", function() {
1022
1022
expect ( element . hasClass ( 'ng-enter-active' ) ) . toBe ( true ) ;
1023
1023
expect ( element . hasClass ( 'one-active' ) ) . toBe ( false ) ;
1024
1024
expect ( element . hasClass ( 'two-active' ) ) . toBe ( false ) ;
1025
- browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 3000 , elapsedTime : 3000 } ) ;
1025
+ browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 3000 , elapsedTime : 3 } ) ;
1026
1026
}
1027
1027
1028
1028
expect ( element . hasClass ( 'one' ) ) . toBe ( true ) ;
@@ -1167,7 +1167,7 @@ describe("ngAnimate", function() {
1167
1167
} ) ;
1168
1168
1169
1169
if ( $sniffer . transitions ) {
1170
- browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
1170
+ browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
1171
1171
}
1172
1172
$timeout . flush ( ) ;
1173
1173
expect ( flag ) . toBe ( true ) ;
@@ -1340,7 +1340,7 @@ describe("ngAnimate", function() {
1340
1340
expect ( element . hasClass ( 'klass' ) ) . toBe ( false ) ;
1341
1341
expect ( element . hasClass ( 'klass-add' ) ) . toBe ( true ) ;
1342
1342
expect ( element . hasClass ( 'klass-add-active' ) ) . toBe ( true ) ;
1343
- browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 3000 , elapsedTime : 3000 } ) ;
1343
+ browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 3000 , elapsedTime : 3 } ) ;
1344
1344
}
1345
1345
1346
1346
//this cancels out the older animation
@@ -1355,7 +1355,7 @@ describe("ngAnimate", function() {
1355
1355
expect ( element . hasClass ( 'klass-add-active' ) ) . toBe ( false ) ;
1356
1356
1357
1357
expect ( element . hasClass ( 'klass-remove' ) ) . toBe ( true ) ;
1358
- browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 3000 , elapsedTime : 3000 } ) ;
1358
+ browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 3000 , elapsedTime : 3 } ) ;
1359
1359
}
1360
1360
$timeout . flush ( ) ;
1361
1361
@@ -1415,7 +1415,7 @@ describe("ngAnimate", function() {
1415
1415
$timeout . flush ( ) ;
1416
1416
expect ( element . hasClass ( 'klass-add' ) ) . toBe ( true ) ;
1417
1417
expect ( element . hasClass ( 'klass-add-active' ) ) . toBe ( true ) ;
1418
- browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 11000 , elapsedTime : 11000 } ) ;
1418
+ browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 11000 , elapsedTime : 11 } ) ;
1419
1419
expect ( element . hasClass ( 'klass-add' ) ) . toBe ( false ) ;
1420
1420
expect ( element . hasClass ( 'klass-add-active' ) ) . toBe ( false ) ;
1421
1421
}
@@ -1431,7 +1431,7 @@ describe("ngAnimate", function() {
1431
1431
$timeout . flush ( ) ;
1432
1432
expect ( element . hasClass ( 'klass-remove' ) ) . toBe ( true ) ;
1433
1433
expect ( element . hasClass ( 'klass-remove-active' ) ) . toBe ( true ) ;
1434
- browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 11000 , elapsedTime : 11000 } ) ;
1434
+ browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 11000 , elapsedTime : 11 } ) ;
1435
1435
expect ( element . hasClass ( 'klass-remove' ) ) . toBe ( false ) ;
1436
1436
expect ( element . hasClass ( 'klass-remove-active' ) ) . toBe ( false ) ;
1437
1437
}
@@ -1467,7 +1467,7 @@ describe("ngAnimate", function() {
1467
1467
1468
1468
expect ( element . hasClass ( 'one-add-active' ) ) . toBe ( true ) ;
1469
1469
expect ( element . hasClass ( 'two-add-active' ) ) . toBe ( true ) ;
1470
- browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 7000 , elapsedTime : 7000 } ) ;
1470
+ browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 7000 , elapsedTime : 7 } ) ;
1471
1471
1472
1472
expect ( element . hasClass ( 'one-add' ) ) . toBe ( false ) ;
1473
1473
expect ( element . hasClass ( 'one-add-active' ) ) . toBe ( false ) ;
@@ -1512,7 +1512,7 @@ describe("ngAnimate", function() {
1512
1512
1513
1513
expect ( element . hasClass ( 'one-remove-active' ) ) . toBe ( true ) ;
1514
1514
expect ( element . hasClass ( 'two-remove-active' ) ) . toBe ( true ) ;
1515
- browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 9000 , elapsedTime : 9000 } ) ;
1515
+ browserTrigger ( element , 'transitionend' , { timeStamp : Date . now ( ) + 9000 , elapsedTime : 9 } ) ;
1516
1516
1517
1517
expect ( element . hasClass ( 'one-remove' ) ) . toBe ( false ) ;
1518
1518
expect ( element . hasClass ( 'one-remove-active' ) ) . toBe ( false ) ;
@@ -1562,7 +1562,7 @@ describe("ngAnimate", function() {
1562
1562
$timeout . flush ( ) ;
1563
1563
expect ( child . hasClass ( 'ng-enter' ) ) . toBe ( true ) ;
1564
1564
expect ( child . hasClass ( 'ng-enter-active' ) ) . toBe ( true ) ;
1565
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
1565
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
1566
1566
}
1567
1567
1568
1568
expect ( child . hasClass ( 'ng-enter' ) ) . toBe ( false ) ;
@@ -1585,7 +1585,7 @@ describe("ngAnimate", function() {
1585
1585
$timeout . flush ( ) ;
1586
1586
expect ( child . hasClass ( 'ng-enter' ) ) . toBe ( true ) ;
1587
1587
expect ( child . hasClass ( 'ng-enter-active' ) ) . toBe ( true ) ;
1588
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 9000 , elapsedTime : 9000 } ) ;
1588
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 9000 , elapsedTime : 9 } ) ;
1589
1589
}
1590
1590
expect ( child . hasClass ( 'ng-enter' ) ) . toBe ( false ) ;
1591
1591
expect ( child . hasClass ( 'ng-enter-active' ) ) . toBe ( false ) ;
@@ -1612,7 +1612,7 @@ describe("ngAnimate", function() {
1612
1612
$rootScope . $digest ( ) ;
1613
1613
$timeout . flush ( ) ;
1614
1614
1615
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 2000 , elapsedTime : 2000 } ) ;
1615
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 2000 , elapsedTime : 2 } ) ;
1616
1616
1617
1617
expect ( child . css ( propertyKey ) ) . toBe ( 'background-color' ) ;
1618
1618
child . remove ( ) ;
@@ -1670,7 +1670,7 @@ describe("ngAnimate", function() {
1670
1670
$timeout . flush ( 10 ) ;
1671
1671
1672
1672
if ( $sniffer . transitions ) {
1673
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
1673
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
1674
1674
}
1675
1675
1676
1676
expect ( child . hasClass ( 'i-was-animated' ) ) . toBe ( true ) ;
@@ -1942,7 +1942,7 @@ describe("ngAnimate", function() {
1942
1942
expect ( child . hasClass ( 'ng-enter' ) ) . toBe ( true ) ;
1943
1943
expect ( child . hasClass ( 'ng-enter-active' ) ) . toBe ( true ) ;
1944
1944
1945
- browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 2000 , elapsedTime : 2000 } ) ;
1945
+ browserTrigger ( child , 'transitionend' , { timeStamp : Date . now ( ) + 2000 , elapsedTime : 2 } ) ;
1946
1946
1947
1947
expect ( child . hasClass ( 'ng-enter' ) ) . toBe ( false ) ;
1948
1948
expect ( child . hasClass ( 'ng-enter-active' ) ) . toBe ( false ) ;
@@ -2039,7 +2039,7 @@ describe("ngAnimate", function() {
2039
2039
expect ( element [ 0 ] . querySelectorAll ( '.ng-enter-active' ) . length ) . toBe ( 5 ) ;
2040
2040
2041
2041
angular . forEach ( element . children ( ) , function ( kid ) {
2042
- browserTrigger ( kid , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1000 } ) ;
2042
+ browserTrigger ( kid , 'transitionend' , { timeStamp : Date . now ( ) + 1000 , elapsedTime : 1 } ) ;
2043
2043
} ) ;
2044
2044
2045
2045
expect ( element [ 0 ] . querySelectorAll ( '.ng-enter-active' ) . length ) . toBe ( 0 ) ;
0 commit comments