Test for bug 730838 draft
authorEric Skoglund <eric@pagefault.se>
Thu, 26 May 2016 10:52:08 +0200
changeset 371279 c16159495d405b2cdcef030c4ca9b5c13da277b5
parent 371278 ea33f5cb5155c16f1f3be687da05a75303cf1ab8
child 521957 2099e167ecd8ea8f7e45964e8a2139f5d9c252b0
push id19289
push usereric@pagefault.se
push dateThu, 26 May 2016 09:14:21 +0000
bugs730838
milestone49.0a1
Test for bug 730838 MozReview-Commit-ID: Irxf3KgJgQd
js/src/tests/ecma_5/Date/15.9.4.2.js
--- a/js/src/tests/ecma_5/Date/15.9.4.2.js
+++ b/js/src/tests/ecma_5/Date/15.9.4.2.js
@@ -124,10 +124,14 @@ function test()
   // different timezones
   check("2009-07-23T19:53:21.001+12:00", dd(2009,7,23,7,53,21,1));
   check("2009-07-23T00:53:21.001-07:00", dd(2009,7,23,7,53,21,1));
 
   // 00:00 and 24:00
   check("2009-07-23T00:00:00.000-07:00", dd(2009,7,23,7,0,0,0));
   check("2009-07-23T24:00:00.000-07:00", dd(2009,7,24,7,0,0,0));
 
+  // Bug 730838 - non-zero fraction part for midnight should produce NaN
+  printBugNumber("730838");
+  checkInvalid("1970-01-01T24:00:00.500Z");
+
   exitFunc ('test');
 }