This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +4
-11
lines changed
1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -1485,18 +1485,14 @@ describe("ngAnimate", function() {
1485
1485
expect ( element . hasClass ( 'hiding' ) ) . toBe ( false ) ;
1486
1486
1487
1487
$animate . addClass ( element , 'ng-hide' ) ;
1488
- return
1489
1488
1490
1489
if ( $sniffer . transitions ) {
1491
1490
expect ( element ) . toBeShown ( ) ; //still showing
1492
1491
$timeout . flush ( ) ;
1493
1492
expect ( element ) . toBeShown ( ) ;
1493
+ $timeout . flushNext ( 5555 ) ;
1494
1494
}
1495
- $timeout . flushNext ( 555 ) ;
1496
- if ( $sniffer . transitions ) {
1497
- expect ( element ) . toBeShown ( ) ;
1498
- $timeout . flushNext ( 5000 ) ;
1499
- }
1495
+ $timeout . flush ( ) ;
1500
1496
expect ( element ) . toBeHidden ( ) ;
1501
1497
1502
1498
expect ( element . hasClass ( 'showing' ) ) . toBe ( false ) ;
@@ -1507,12 +1503,9 @@ describe("ngAnimate", function() {
1507
1503
expect ( element ) . toBeHidden ( ) ;
1508
1504
$timeout . flush ( ) ;
1509
1505
expect ( element ) . toBeHidden ( ) ;
1506
+ $timeout . flushNext ( 5580 ) ;
1510
1507
}
1511
- $timeout . flushNext ( 25 ) ;
1512
- if ( $sniffer . transitions ) {
1513
- expect ( element ) . toBeHidden ( ) ;
1514
- $timeout . flushNext ( 5000 ) ;
1515
- }
1508
+ $timeout . flush ( ) ;
1516
1509
expect ( element ) . toBeShown ( ) ;
1517
1510
1518
1511
expect ( element . hasClass ( 'showing' ) ) . toBe ( true ) ;
You can’t perform that action at this time.
0 commit comments