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

fix(datepicker): unit tests in safari #8551

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/components/datepicker/datePicker.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ describe('md-date-picker', function() {
altKey: true,
keyCode: keyCodes.DOWN_ARROW
});
$timeout.flush();

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

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

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

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

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

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

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

// Expect that the calendar pane is in the same position as the inline datepicker.
var paneRect = controller.calendarPane.getBoundingClientRect();
Expand Down
2 changes: 1 addition & 1 deletion src/components/datepicker/dateUtil.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,6 @@ describe('$$mdDateUtil', function() {
expect(angular.isNumber(result)).toBe(true);
expect(result).toBe(time);

node.remove();
node = null;
});
});