Bug 730838 - Tests for Bug 730838. r=evilpies
authorEric Skoglund <eric@pagefault.se>
Sat, 28 May 2016 16:06:10 +0200
changeset 339431 90a4cdcb559e200eee669ad9ae6f5840fb98bf62
parent 339430 fca24589e9666a482ba169a446f8f19eef66b841
child 339432 daf8583252b256d279453f6cbd7e8494f1a811c4
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersevilpies
bugs730838
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 730838 - Tests for Bug 730838. r=evilpies MozReview-Commit-ID: 4VwAF8H5cP3
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,13 @@ 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
+  checkInvalid("1970-01-01T24:00:00.500Z");
+
   exitFunc ('test');
 }