Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit e588df9

Browse files
crisbetoThomasBurleson
authored andcommitted
fix(datepicker): unit tests in safari
Fixes some unit tests not passing in Safari. Closes #8551
1 parent 72ed02f commit e588df9

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/components/datepicker/datePicker.spec.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ describe('md-date-picker', function() {
364364
altKey: true,
365365
keyCode: keyCodes.DOWN_ARROW
366366
});
367-
$timeout.flush();
368367

369368
expect(controller.calendarPane.offsetHeight).toBeGreaterThan(0);
370369

@@ -383,7 +382,6 @@ describe('md-date-picker', function() {
383382

384383
// Open the pane.
385384
element.querySelector('md-button').click();
386-
$timeout.flush();
387385

388386
// Expect that the whole pane is on-screen.
389387
var paneRect = controller.calendarPane.getBoundingClientRect();
@@ -410,7 +408,6 @@ describe('md-date-picker', function() {
410408

411409
// Open the pane.
412410
element.querySelector('md-button').click();
413-
$timeout.flush();
414411

415412
// Expect that the pane is on-screen.
416413
var paneRect = controller.calendarPane.getBoundingClientRect();
@@ -438,7 +435,6 @@ describe('md-date-picker', function() {
438435

439436
// Open the pane.
440437
element.querySelector('md-button').click();
441-
$timeout.flush();
442438

443439
// Expect that the calendar pane is in the same position as the inline datepicker.
444440
var paneRect = controller.calendarPane.getBoundingClientRect();

src/components/datepicker/dateUtil.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,6 @@ describe('$$mdDateUtil', function() {
434434
expect(angular.isNumber(result)).toBe(true);
435435
expect(result).toBe(time);
436436

437-
node.remove();
437+
node = null;
438438
});
439439
});

0 commit comments

Comments
 (0)