]> source.dussan.org Git - jquery-ui.git/commitdiff
Calendar tests: use dateEqual assert instead of timestamp compare 1755/head
authorFelix Nagel <info@felixnagel.com>
Sat, 29 Oct 2016 22:54:34 +0000 (00:54 +0200)
committerFelix Nagel <info@felixnagel.com>
Fri, 4 Nov 2016 10:26:18 +0000 (11:26 +0100)
Fix travis unit test issue due to timezone difference.

tests/unit/calendar/options.js

index ab352c4a038b604057926116d1c34f1ce57d3749..0afbfaf69cf9afbf8e9615114ba8f99788744c33 100644 (file)
@@ -327,9 +327,9 @@ test( "value", function( assert ) {
 
        this.element.calendar( "option", "value", date );
        assert.dateEqual( this.element.calendar( "option", "value" ), date, "Value set" );
-       equal(
-               this.widget.find( "table button.ui-state-active" ).data( "ui-calendar-timestamp" ),
-               1463954400000,
+       assert.dateEqual(
+               new Date( this.widget.find( "table button.ui-state-active" ).data( "ui-calendar-timestamp" ) ),
+               new Date( 1463972400000 ),
                "Active button timestamp"
        );