Opened 3 years ago

#14942 new bug

Datepicker tests failed on Leap Day

Reported by: Zack Hall Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.11.3
Keywords: Cc:
Blocked by: Blocking:

Description

The following two test failures were picked up by the MSFT Edge team on leap day: Feb 29th, 2016.

datepicker: options: defaultDate

Asserts Passed:14/16 Failure: {message: Default date -2y, expected: "Sat Mar 01 2014 00:00:00 GMT-0800 (Pacific Standard Time)", actual: "Fri Feb 28 2014 00:00:00 GMT-0800 (Pacific Standard Time)", source: at TestHelpers.datepicker.equalsDate (http://protractor/TestContent/JQueryUI/1.11.4/tests/unit/datepicker/datepicker_test_helpers.js:15:3) at Anonymous function (http://protractor/TestContent/JQueryUI/1.11.4/tests/unit/datepicker/datepicker_options.js:324:2)} Failure: {message: Default date +1 Y, expected: "Wed Mar 01 2017 00:00:00 GMT-0800 (Pacific Standard Time)", actual: "Tue Feb 28 2017 00:00:00 GMT-0800 (Pacific Standard Time)", source: at TestHelpers.datepicker.equalsDate (http://protractor/TestContent/JQueryUI/1.11.4/tests/unit/datepicker/datepicker_test_helpers.js:15:3) at Anonymous function (http://protractor/TestContent/JQueryUI/1.11.4/tests/unit/datepicker/datepicker_options.js:329:2)}

datepicker: options: setDate

Asserts Passed:22/24 Failure: {message: Set date - +2y, expected: "Thu Mar 01 2018 00:00:00 GMT-0800 (Pacific Standard Time)", actual: "Wed Feb 28 2018 00:00:00 GMT-0800 (Pacific Standard Time)", source: at TestHelpers.datepicker.equalsDate (http://protractor/TestContent/JQueryUI/1.11.4/tests/unit/datepicker/datepicker_test_helpers.js:15:3) at Anonymous function (http://protractor/TestContent/JQueryUI/1.11.4/tests/unit/datepicker/datepicker_options.js:539:2)} Failure: {message: Set date inline - +2y, expected: "Thu Mar 01 2018 00:00:00 GMT-0800 (Pacific Standard Time)", actual: "Wed Feb 28 2018 00:00:00 GMT-0800 (Pacific Standard Time)", source: at TestHelpers.datepicker.equalsDate (http://protractor/TestContent/JQueryUI/1.11.4/tests/unit/datepicker/datepicker_test_helpers.js:15:3) at Anonymous function (http://protractor/TestContent/JQueryUI/1.11.4/tests/unit/datepicker/datepicker_options.js:568:2)}

Change History (0)

Note: See TracTickets for help on using tickets.