Bug 866369 - Test case for jstests/test402. r=jwalden
authorNorbert Lindenberg <mozilladev@lindenbergsoftware.com>
Tue, 30 Apr 2013 08:52:43 -0400
changeset 141280 75db6ad43aa1e7d952479f469d3975b33150fafb
parent 141279 f4da799815dabe5d1e0e739cf7347dd51d85b68d
child 141281 49976a5935584a9854327fc44128d51e6a4b1891
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden
bugs866369
milestone23.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 866369 - Test case for jstests/test402. r=jwalden
js/src/tests/test402/HG-INFO
js/src/tests/test402/ch11/11.3/11.3.2_TRF.js
js/src/tests/test402/ch11/11.3/11.3.2_TRP.js
--- a/js/src/tests/test402/HG-INFO
+++ b/js/src/tests/test402/HG-INFO
@@ -1,7 +1,7 @@
-URL:         http://hg.ecmascript.org/tests/test262/
-changeset:   364:8bd874363ed7
+URL:         http://hg.ecmascript.org/tests/test262
+changeset:   365:99aac3bc1cad
 tag:         tip
 user:        Norbert Lindenberg <ecmascript@lindenbergsoftware.com>
-date:        Mon Apr 15 20:05:50 2013 -0700
-summary:     Updated minor unit value for Uganda Shilling to 0 per ISO 4217 Amendment Number 155.
+date:        Mon Apr 29 17:35:48 2013 -0700
+summary:     Added test data for proper rounding in NumberFormat.format.
 
--- a/js/src/tests/test402/ch11/11.3/11.3.2_TRF.js
+++ b/js/src/tests/test402/ch11/11.3/11.3.2_TRF.js
@@ -23,16 +23,20 @@ var testData = {
     "0": "000.0",
     "-0": "000.0",
     "123": "123.0",
     "-123": "-123.0",
     "12345": "12345.0",
     "-12345": "-12345.0",
     "123.45": "123.45",
     "-123.45": "-123.45",
+    "123.444499": "123.444",
+    "-123.444499": "-123.444",
+    "123.444500": "123.445",
+    "-123.444500": "-123.445",
     "123.44501": "123.445",
     "-123.44501": "-123.445",
     "0.001234": "000.001",
     "-0.001234": "-000.001",
     "0.00000000123": "000.0",
     "-0.00000000123": "-000.0",
     "0.00000000000000000000000000000123": "000.0",
     "-0.00000000000000000000000000000123": "-000.0",
--- a/js/src/tests/test402/ch11/11.3/11.3.2_TRP.js
+++ b/js/src/tests/test402/ch11/11.3/11.3.2_TRP.js
@@ -23,16 +23,20 @@ var testData = {
     "0": "0.00",
     "-0": "0.00",
     "123": "123",
     "-123": "-123",
     "12345": "12345",
     "-12345": "-12345",
     "123.45": "123.45",
     "-123.45": "-123.45",
+    "123.44499": "123.44",
+    "-123.44499": "-123.44",
+    "123.44500": "123.45",
+    "-123.44500": "-123.45",
     "123.44501": "123.45",
     "-123.44501": "-123.45",
     "0.001234": "0.001234",
     "-0.001234": "-0.001234",
     "0.00000000123": "0.00000000123",
     "-0.00000000123": "-0.00000000123",
     "0.00000000000000000000000000000123": "0.00000000000000000000000000000123",
     "-0.00000000000000000000000000000123": "-0.00000000000000000000000000000123",