This repository was archived by the owner on Sep 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
src/components/datepicker Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -364,7 +364,6 @@ describe('md-date-picker', function() {
364
364
altKey : true ,
365
365
keyCode : keyCodes . DOWN_ARROW
366
366
} ) ;
367
- $timeout . flush ( ) ;
368
367
369
368
expect ( controller . calendarPane . offsetHeight ) . toBeGreaterThan ( 0 ) ;
370
369
@@ -383,7 +382,6 @@ describe('md-date-picker', function() {
383
382
384
383
// Open the pane.
385
384
element . querySelector ( 'md-button' ) . click ( ) ;
386
- $timeout . flush ( ) ;
387
385
388
386
// Expect that the whole pane is on-screen.
389
387
var paneRect = controller . calendarPane . getBoundingClientRect ( ) ;
@@ -410,7 +408,6 @@ describe('md-date-picker', function() {
410
408
411
409
// Open the pane.
412
410
element . querySelector ( 'md-button' ) . click ( ) ;
413
- $timeout . flush ( ) ;
414
411
415
412
// Expect that the pane is on-screen.
416
413
var paneRect = controller . calendarPane . getBoundingClientRect ( ) ;
@@ -438,7 +435,6 @@ describe('md-date-picker', function() {
438
435
439
436
// Open the pane.
440
437
element . querySelector ( 'md-button' ) . click ( ) ;
441
- $timeout . flush ( ) ;
442
438
443
439
// Expect that the calendar pane is in the same position as the inline datepicker.
444
440
var paneRect = controller . calendarPane . getBoundingClientRect ( ) ;
Original file line number Diff line number Diff line change @@ -434,6 +434,6 @@ describe('$$mdDateUtil', function() {
434
434
expect ( angular . isNumber ( result ) ) . toBe ( true ) ;
435
435
expect ( result ) . toBe ( time ) ;
436
436
437
- node . remove ( ) ;
437
+ node = null ;
438
438
} ) ;
439
439
} ) ;
You can’t perform that action at this time.
0 commit comments