Skip to content

Commit

Permalink
Date Picker: Fixed a rounding issue with the test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGoderre committed Jan 12, 2016
1 parent 70e771d commit 2251aa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/polyfills/datepicker/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@
var calendarPosition = $calendar.offset(),
fieldPosition = $elm.offset();

expect( Math.round( calendarPosition.left ) ).to.equal( Math.round( fieldPosition.left ) );
expect( Math.round( calendarPosition.top ) ).to.equal( Math.round( fieldPosition.top + $elm.outerHeight() ) );
expect( Math.floor( calendarPosition.left ) ).to.equal( Math.floor( fieldPosition.left ) );
expect( Math.floor( calendarPosition.top ) ).to.equal( Math.floor( fieldPosition.top + $elm.outerHeight() ) );
} );
} );

Expand Down

0 comments on commit 2251aa5

Please sign in to comment.