diff options
author | Felix Nagel <info@felixnagel.com> | 2017-03-31 21:33:06 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2017-03-31 21:33:06 +0200 |
commit | 27f9f87fa25202777b36d7a9c199733a9d25d61c (patch) | |
tree | 924402e6139baeff3b3e26aa2b4e4c1058e0dd15 | |
parent | 6d81c03493c2135faf61ddb2ab69faaed9c019af (diff) | |
download | jquery-ui-27f9f87fa25202777b36d7a9c199733a9d25d61c.tar.gz jquery-ui-27f9f87fa25202777b36d7a9c199733a9d25d61c.zip |
Calendar tests: Remove unused and outdated daylight saving tests
-rw-r--r-- | tests/unit/calendar/options.js | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/tests/unit/calendar/options.js b/tests/unit/calendar/options.js index abfbaf016..03803a39a 100644 --- a/tests/unit/calendar/options.js +++ b/tests/unit/calendar/options.js @@ -332,90 +332,4 @@ QUnit.test( "value", function( assert ) { assert.equal( this.element.calendar( "option", "value" ), null, "Value after invalid parameter" ); } ); -/* -// TODO: Move this to $.date, Globalize or calendar widget -test( "daylightSaving", function() { - expect( 25 ); - var inp = testHelper.init( "#inp" ), - dp = $( "#ui-datepicker-div" ); - ok(true, "Daylight saving - " + new Date()); - // Australia, Sydney - AM change, southern hemisphere - inp.val( "04/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(6) a", dp).simulate( "click" ); - equal(inp.val(), "04/05/2008", "Daylight saving - Australia 04/05/2008" ); - inp.val( "04/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(7) a", dp).simulate( "click" ); - equal(inp.val(), "04/06/2008", "Daylight saving - Australia 04/06/2008" ); - inp.val( "04/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(8) a", dp).simulate( "click" ); - equal(inp.val(), "04/07/2008", "Daylight saving - Australia 04/07/2008" ); - inp.val( "10/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(6) a", dp).simulate( "click" ); - equal(inp.val(), "10/04/2008", "Daylight saving - Australia 10/04/2008" ); - inp.val( "10/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(7) a", dp).simulate( "click" ); - equal(inp.val(), "10/05/2008", "Daylight saving - Australia 10/05/2008" ); - inp.val( "10/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(8) a", dp).simulate( "click" ); - equal(inp.val(), "10/06/2008", "Daylight saving - Australia 10/06/2008" ); - // Brasil, Brasilia - midnight change, southern hemisphere - inp.val( "02/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(20) a", dp).simulate( "click" ); - equal(inp.val(), "02/16/2008", "Daylight saving - Brasil 02/16/2008" ); - inp.val( "02/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(21) a", dp).simulate( "click" ); - equal(inp.val(), "02/17/2008", "Daylight saving - Brasil 02/17/2008" ); - inp.val( "02/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(22) a", dp).simulate( "click" ); - equal(inp.val(), "02/18/2008", "Daylight saving - Brasil 02/18/2008" ); - inp.val( "10/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(13) a", dp).simulate( "click" ); - equal(inp.val(), "10/11/2008", "Daylight saving - Brasil 10/11/2008" ); - inp.val( "10/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(14) a", dp).simulate( "click" ); - equal(inp.val(), "10/12/2008", "Daylight saving - Brasil 10/12/2008" ); - inp.val( "10/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(15) a", dp).simulate( "click" ); - equal(inp.val(), "10/13/2008", "Daylight saving - Brasil 10/13/2008" ); - // Lebanon, Beirut - midnight change, northern hemisphere - inp.val( "03/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(34) a", dp).simulate( "click" ); - equal(inp.val(), "03/29/2008", "Daylight saving - Lebanon 03/29/2008" ); - inp.val( "03/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(35) a", dp).simulate( "click" ); - equal(inp.val(), "03/30/2008", "Daylight saving - Lebanon 03/30/2008" ); - inp.val( "03/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(36) a", dp).simulate( "click" ); - equal(inp.val(), "03/31/2008", "Daylight saving - Lebanon 03/31/2008" ); - inp.val( "10/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(27) a", dp).simulate( "click" ); - equal(inp.val(), "10/25/2008", "Daylight saving - Lebanon 10/25/2008" ); - inp.val( "10/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(28) a", dp).simulate( "click" ); - equal(inp.val(), "10/26/2008", "Daylight saving - Lebanon 10/26/2008" ); - inp.val( "10/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(29) a", dp).simulate( "click" ); - equal(inp.val(), "10/27/2008", "Daylight saving - Lebanon 10/27/2008" ); - // US, Eastern - AM change, northern hemisphere - inp.val( "03/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(13) a", dp).simulate( "click" ); - equal(inp.val(), "03/08/2008", "Daylight saving - US 03/08/2008" ); - inp.val( "03/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(14) a", dp).simulate( "click" ); - equal(inp.val(), "03/09/2008", "Daylight saving - US 03/09/2008" ); - inp.val( "03/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(15) a", dp).simulate( "click" ); - equal(inp.val(), "03/10/2008", "Daylight saving - US 03/10/2008" ); - inp.val( "11/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(6) a", dp).simulate( "click" ); - equal(inp.val(), "11/01/2008", "Daylight saving - US 11/01/2008" ); - inp.val( "11/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(7) a", dp).simulate( "click" ); - equal(inp.val(), "11/02/2008", "Daylight saving - US 11/02/2008" ); - inp.val( "11/01/2008" ).calendar( "show" ); - $( ".ui-calendar-calendar td:eq(8) a", dp).simulate( "click" ); - equal(inp.val(), "11/03/2008", "Daylight saving - US 11/03/2008" ); - }); - */ - } ); |