Commit 530ba652 authored by dumi@chromium.org's avatar dumi@chromium.org
Browse files

Unreviewed, updating Chromium expectations.

* platform/chromium-mac/fast/js/kde/Number-expected.txt:
* platform/chromium-mac/fast/js/number-toExponential-expected.txt:
* platform/chromium-mac/fast/js/number-tofixed-expected.txt:
* platform/chromium-mac/fast/js/number-toprecision-expected.txt:
* platform/chromium-win/fast/js/kde/Number-expected.txt:
* platform/chromium-win/fast/js/number-toExponential-expected.txt:
* platform/chromium-win/fast/js/number-tofixed-expected.txt:
* platform/chromium-win/fast/js/number-toprecision-expected.txt:
* platform/chromium/test_expectations.txt:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65974 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 31430aa9
2010-08-24 Dumitru Daniliuc <dumi@chromium.org>
Unreviewed, updating Chromium expectations.
* platform/chromium-mac/fast/js/kde/Number-expected.txt:
* platform/chromium-mac/fast/js/number-toExponential-expected.txt:
* platform/chromium-mac/fast/js/number-tofixed-expected.txt:
* platform/chromium-mac/fast/js/number-toprecision-expected.txt:
* platform/chromium-win/fast/js/kde/Number-expected.txt:
* platform/chromium-win/fast/js/number-toExponential-expected.txt:
* platform/chromium-win/fast/js/number-tofixed-expected.txt:
* platform/chromium-win/fast/js/number-toprecision-expected.txt:
* platform/chromium/test_expectations.txt:
2010-08-24 Adam Barth <abarth@webkit.org>
 
Add http/tests/security/xssAuditor/dom-write-location-inline-event.html
......@@ -188,11 +188,11 @@ PASS Number(123.4567890123456789012).toExponential(12) is "1.234567890123e+2"
PASS Number(123.4567890123456789012).toExponential(13) is "1.2345678901235e+2"
PASS Number(123.4567890123456789012).toExponential(14) is "1.23456789012346e+2"
PASS Number(123.4567890123456789012).toExponential(15) is "1.234567890123457e+2"
FAIL Number(123.4567890123456789012).toExponential(16) should be 1.2345678901234570e+2. Was 1.2345678901234568e+2.
FAIL Number(123.4567890123456789012).toExponential(17) should be 1.23456789012345700e+2. Was 1.23456789012345681e+2.
FAIL Number(123.4567890123456789012).toExponential(18) should be 1.234567890123457100e+2. Was 1.234567890123456806e+2.
FAIL Number(123.4567890123456789012).toExponential(19) should be 1.2345678901234570000e+2. Was 1.2345678901234568059e+2.
FAIL Number(123.4567890123456789012).toExponential(20) should be 1.23456789012345700000e+2. Was 1.23456789012345680590e+2.
PASS Number(123.4567890123456789012).toExponential(16) is "1.2345678901234568e+2"
FAIL Number(123.4567890123456789012).toExponential(17) should be 1.23456789012345680e+2. Was 1.23456789012345681e+2.
FAIL Number(123.4567890123456789012).toExponential(18) should be 1.234567890123456800e+2. Was 1.234567890123456806e+2.
FAIL Number(123.4567890123456789012).toExponential(19) should be 1.2345678901234567000e+2. Was 1.2345678901234568059e+2.
FAIL Number(123.4567890123456789012).toExponential(20) should be 1.23456789012345680000e+2. Was 1.23456789012345680590e+2.
PASS try { Number(123.4567890123456789012).toExponential(21) } catch (e) { String(e).indexOf('Range') >= 0; } is true
PASS Number(-123.4567890123456789012).toExponential() is "-1.2345678901234568e+2"
PASS try { Number(-123.4567890123456789012).toExponential(-1) } catch (e) { String(e).indexOf('Range') >= 0; } is true
......@@ -212,11 +212,11 @@ PASS Number(-123.4567890123456789012).toExponential(12) is "-1.234567890123e+2"
PASS Number(-123.4567890123456789012).toExponential(13) is "-1.2345678901235e+2"
PASS Number(-123.4567890123456789012).toExponential(14) is "-1.23456789012346e+2"
PASS Number(-123.4567890123456789012).toExponential(15) is "-1.234567890123457e+2"
FAIL Number(-123.4567890123456789012).toExponential(16) should be -1.2345678901234570e+2. Was -1.2345678901234568e+2.
FAIL Number(-123.4567890123456789012).toExponential(17) should be -1.23456789012345700e+2. Was -1.23456789012345681e+2.
FAIL Number(-123.4567890123456789012).toExponential(18) should be -1.234567890123457100e+2. Was -1.234567890123456806e+2.
FAIL Number(-123.4567890123456789012).toExponential(19) should be -1.2345678901234570000e+2. Was -1.2345678901234568059e+2.
FAIL Number(-123.4567890123456789012).toExponential(20) should be -1.23456789012345700000e+2. Was -1.23456789012345680590e+2.
PASS Number(-123.4567890123456789012).toExponential(16) is "-1.2345678901234568e+2"
FAIL Number(-123.4567890123456789012).toExponential(17) should be -1.23456789012345680e+2. Was -1.23456789012345681e+2.
FAIL Number(-123.4567890123456789012).toExponential(18) should be -1.234567890123456800e+2. Was -1.234567890123456806e+2.
FAIL Number(-123.4567890123456789012).toExponential(19) should be -1.2345678901234567000e+2. Was -1.2345678901234568059e+2.
FAIL Number(-123.4567890123456789012).toExponential(20) should be -1.23456789012345680000e+2. Was -1.23456789012345680590e+2.
PASS try { Number(-123.4567890123456789012).toExponential(21) } catch (e) { String(e).indexOf('Range') >= 0; } is true
PASS Number(.0000000000000000000001).toExponential() is "1e-22"
PASS Number(.0000000000000000000012).toExponential() is "1.2e-21"
......@@ -348,11 +348,11 @@ PASS Number(0.0001234567890123456789012345).toPrecision(13) is "0.00012345678901
PASS Number(0.0001234567890123456789012345).toPrecision(14) is "0.00012345678901235"
PASS Number(0.0001234567890123456789012345).toPrecision(15) is "0.000123456789012346"
PASS Number(0.0001234567890123456789012345).toPrecision(16) is "0.0001234567890123457"
FAIL Number(0.0001234567890123456789012345).toPrecision(17) should be 0.00012345678901234568. Was 0.00012345678901234567.
FAIL Number(0.0001234567890123456789012345).toPrecision(18) should be 0.000123456789012345680. Was 0.000123456789012345671.
FAIL Number(0.0001234567890123456789012345).toPrecision(19) should be 0.0001234567890123456800. Was 0.0001234567890123456713.
FAIL Number(0.0001234567890123456789012345).toPrecision(20) should be 0.00012345678901234567000. Was 0.00012345678901234567130.
FAIL Number(0.0001234567890123456789012345).toPrecision(21) should be 0.000123456789012345680000. Was 0.000123456789012345671298.
PASS Number(0.0001234567890123456789012345).toPrecision(17) is "0.00012345678901234567"
PASS Number(0.0001234567890123456789012345).toPrecision(18) is "0.000123456789012345671"
PASS Number(0.0001234567890123456789012345).toPrecision(19) is "0.0001234567890123456713"
PASS Number(0.0001234567890123456789012345).toPrecision(20) is "0.00012345678901234567130"
FAIL Number(0.0001234567890123456789012345).toPrecision(21) should be 0.000123456789012345671297. Was 0.000123456789012345671298.
PASS Number(12345.67890123456789012345).toPrecision() is "12345.678901234567"
PASS Number(12345.67890123456789012345).toPrecision(1) is "1e+4"
PASS Number(12345.67890123456789012345).toPrecision(2) is "1.2e+4"
......@@ -373,7 +373,7 @@ PASS Number(12345.67890123456789012345).toPrecision(16) is "12345.67890123457"
FAIL Number(12345.67890123456789012345).toPrecision(17) should be 12345.678901234568. Was 12345.678901234567.
FAIL Number(12345.67890123456789012345).toPrecision(18) should be 12345.6789012345660. Was 12345.6789012345671.
FAIL Number(12345.67890123456789012345).toPrecision(19) should be 12345.67890123456800. Was 12345.67890123456709.
FAIL Number(12345.67890123456789012345).toPrecision(20) should be 12345.678901234565000. Was 12345.678901234567093.
FAIL Number(12345.67890123456789012345).toPrecision(20) should be 12345.678901234567000. Was 12345.678901234567093.
FAIL Number(12345.67890123456789012345).toPrecision(21) should be 12345.6789012345670000. Was 12345.6789012345670926.
PASS Number(-.0000000012345).toPrecision(2) is "-1.2e-9"
PASS Number(-.000000012345).toPrecision(2) is "-1.2e-8"
......@@ -408,11 +408,11 @@ PASS Number(-0.0001234567890123456789012345).toPrecision(13) is "-0.000123456789
PASS Number(-0.0001234567890123456789012345).toPrecision(14) is "-0.00012345678901235"
PASS Number(-0.0001234567890123456789012345).toPrecision(15) is "-0.000123456789012346"
PASS Number(-0.0001234567890123456789012345).toPrecision(16) is "-0.0001234567890123457"
FAIL Number(-0.0001234567890123456789012345).toPrecision(17) should be -0.00012345678901234568. Was -0.00012345678901234567.
FAIL Number(-0.0001234567890123456789012345).toPrecision(18) should be -0.000123456789012345680. Was -0.000123456789012345671.
FAIL Number(-0.0001234567890123456789012345).toPrecision(19) should be -0.0001234567890123456800. Was -0.0001234567890123456713.
FAIL Number(-0.0001234567890123456789012345).toPrecision(20) should be -0.00012345678901234567000. Was -0.00012345678901234567130.
FAIL Number(-0.0001234567890123456789012345).toPrecision(21) should be -0.000123456789012345680000. Was -0.000123456789012345671298.
PASS Number(-0.0001234567890123456789012345).toPrecision(17) is "-0.00012345678901234567"
PASS Number(-0.0001234567890123456789012345).toPrecision(18) is "-0.000123456789012345671"
PASS Number(-0.0001234567890123456789012345).toPrecision(19) is "-0.0001234567890123456713"
PASS Number(-0.0001234567890123456789012345).toPrecision(20) is "-0.00012345678901234567130"
FAIL Number(-0.0001234567890123456789012345).toPrecision(21) should be -0.000123456789012345671297. Was -0.000123456789012345671298.
PASS Number(-12345.67890123456789012345).toPrecision() is "-12345.678901234567"
PASS Number(-12345.67890123456789012345).toPrecision(1) is "-1e+4"
PASS Number(-12345.67890123456789012345).toPrecision(2) is "-1.2e+4"
......@@ -433,7 +433,7 @@ PASS Number(-12345.67890123456789012345).toPrecision(16) is "-12345.67890123457"
FAIL Number(-12345.67890123456789012345).toPrecision(17) should be -12345.678901234568. Was -12345.678901234567.
FAIL Number(-12345.67890123456789012345).toPrecision(18) should be -12345.6789012345660. Was -12345.6789012345671.
FAIL Number(-12345.67890123456789012345).toPrecision(19) should be -12345.67890123456800. Was -12345.67890123456709.
FAIL Number(-12345.67890123456789012345).toPrecision(20) should be -12345.678901234565000. Was -12345.678901234567093.
FAIL Number(-12345.67890123456789012345).toPrecision(20) should be -12345.678901234567000. Was -12345.678901234567093.
FAIL Number(-12345.67890123456789012345).toPrecision(21) should be -12345.6789012345670000. Was -12345.6789012345670926.
PASS Number(0).toPrecision() is "0"
PASS Number(0).toPrecision(1) is "0"
......
......@@ -17,8 +17,8 @@ PASS (123.456).toExponential(3) is "1.235e+2"
PASS (123.456).toExponential(5) is "1.23456e+2"
PASS (123.456).toExponential(6) is "1.234560e+2"
PASS (123.456).toExponential(20) is "1.23456000000000003070e+2"
FAIL (123.456).toExponential(21) should be 1.234560000000000030695e+2. Threw exception RangeError: toExponential() argument must be between 0 and 20
FAIL (123.456).toExponential(100) should be 1.2345600000000000306954461848363280296325683593750000000000000000000000000000000000000000000000000000e+2. Threw exception RangeError: toExponential() argument must be between 0 and 20
PASS (123.456).toExponential(21) threw exception RangeError: toExponential() argument must be between 0 and 20.
PASS (123.456).toExponential(100) threw exception RangeError: toExponential() argument must be between 0 and 20.
PASS (123.456).toExponential(101) threw exception RangeError: toExponential() argument must be between 0 and 20.
PASS (123.456).toExponential(-1) threw exception RangeError: toExponential() argument must be between 0 and 20.
PASS (1234.567).toExponential(posInf) threw exception RangeError: toExponential() argument must be between 0 and 20.
......
......@@ -42,13 +42,13 @@ PASS (1234.567).toFixed(2) is "1234.57"
PASS (1234.567).toFixed(2.9) is "1234.57"
PASS (1234.567).toFixed(5) is "1234.56700"
PASS (1234.567).toFixed(20) is "1234.56700000000000727596"
FAIL (1234.567).toFixed(21) should be 1234.567000000000007275958. Threw exception RangeError: toFixed() digits argument must be between 0 and 20
FAIL (1234.567).toFixed(100) should be 1234.5670000000000072759576141834259033203125000000000000000000000000000000000000000000000000000000000000. Threw exception RangeError: toFixed() digits argument must be between 0 and 20
PASS (1234.567).toFixed(21) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(100) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(101) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
FAIL (1234.567).toFixed(-1) should be 1230. Threw exception RangeError: toFixed() digits argument must be between 0 and 20
FAIL (1234.567).toFixed(-4) should be 0. Threw exception RangeError: toFixed() digits argument must be between 0 and 20
FAIL (1234.567).toFixed(-5) should be 0. Threw exception RangeError: toFixed() digits argument must be between 0 and 20
FAIL (1234.567).toFixed(-20) should be 0. Threw exception RangeError: toFixed() digits argument must be between 0 and 20
PASS (1234.567).toFixed(-1) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(-4) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(-5) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(-20) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(-21) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(posInf) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(negInf) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
......
......@@ -23,8 +23,8 @@ PASS (1234.567).toPrecision(2) is "1.2e+3"
PASS (1234.567).toPrecision(2.9) is "1.2e+3"
PASS (1234.567).toPrecision(5) is "1234.6"
PASS (1234.567).toPrecision(21) is "1234.56700000000000728"
FAIL (1234.567).toPrecision(22) should be 1234.567000000000007276. Threw exception RangeError: toPrecision() argument must be between 1 and 21
FAIL (1234.567).toPrecision(100) should be 1234.567000000000007275957614183425903320312500000000000000000000000000000000000000000000000000000000. Threw exception RangeError: toPrecision() argument must be between 1 and 21
PASS (1234.567).toPrecision(22) threw exception RangeError: toPrecision() argument must be between 1 and 21.
PASS (1234.567).toPrecision(100) threw exception RangeError: toPrecision() argument must be between 1 and 21.
PASS (1234.567).toPrecision(101) threw exception RangeError: toPrecision() argument must be between 1 and 21.
PASS (1234.567).toPrecision(posInf) threw exception RangeError: toPrecision() argument must be between 1 and 21.
PASS (1234.567).toPrecision(negInf) threw exception RangeError: toPrecision() argument must be between 1 and 21.
......
......@@ -188,11 +188,11 @@ PASS Number(123.4567890123456789012).toExponential(12) is "1.234567890123e+2"
PASS Number(123.4567890123456789012).toExponential(13) is "1.2345678901235e+2"
PASS Number(123.4567890123456789012).toExponential(14) is "1.23456789012346e+2"
PASS Number(123.4567890123456789012).toExponential(15) is "1.234567890123457e+2"
FAIL Number(123.4567890123456789012).toExponential(16) should be 1.2345678901234570e+2. Was 1.2345678901234568e+2.
FAIL Number(123.4567890123456789012).toExponential(17) should be 1.23456789012345700e+2. Was 1.23456789012345681e+2.
FAIL Number(123.4567890123456789012).toExponential(18) should be 1.234567890123457100e+2. Was 1.234567890123456806e+2.
FAIL Number(123.4567890123456789012).toExponential(19) should be 1.2345678901234570000e+2. Was 1.2345678901234568059e+2.
FAIL Number(123.4567890123456789012).toExponential(20) should be 1.23456789012345700000e+2. Was 1.23456789012345680590e+2.
PASS Number(123.4567890123456789012).toExponential(16) is "1.2345678901234568e+2"
FAIL Number(123.4567890123456789012).toExponential(17) should be 1.23456789012345680e+2. Was 1.23456789012345681e+2.
FAIL Number(123.4567890123456789012).toExponential(18) should be 1.234567890123456800e+2. Was 1.234567890123456806e+2.
FAIL Number(123.4567890123456789012).toExponential(19) should be 1.2345678901234567000e+2. Was 1.2345678901234568059e+2.
FAIL Number(123.4567890123456789012).toExponential(20) should be 1.23456789012345680000e+2. Was 1.23456789012345680590e+2.
PASS try { Number(123.4567890123456789012).toExponential(21) } catch (e) { String(e).indexOf('Range') >= 0; } is true
PASS Number(-123.4567890123456789012).toExponential() is "-1.2345678901234568e+2"
PASS try { Number(-123.4567890123456789012).toExponential(-1) } catch (e) { String(e).indexOf('Range') >= 0; } is true
......@@ -212,11 +212,11 @@ PASS Number(-123.4567890123456789012).toExponential(12) is "-1.234567890123e+2"
PASS Number(-123.4567890123456789012).toExponential(13) is "-1.2345678901235e+2"
PASS Number(-123.4567890123456789012).toExponential(14) is "-1.23456789012346e+2"
PASS Number(-123.4567890123456789012).toExponential(15) is "-1.234567890123457e+2"
FAIL Number(-123.4567890123456789012).toExponential(16) should be -1.2345678901234570e+2. Was -1.2345678901234568e+2.
FAIL Number(-123.4567890123456789012).toExponential(17) should be -1.23456789012345700e+2. Was -1.23456789012345681e+2.
FAIL Number(-123.4567890123456789012).toExponential(18) should be -1.234567890123457100e+2. Was -1.234567890123456806e+2.
FAIL Number(-123.4567890123456789012).toExponential(19) should be -1.2345678901234570000e+2. Was -1.2345678901234568059e+2.
FAIL Number(-123.4567890123456789012).toExponential(20) should be -1.23456789012345700000e+2. Was -1.23456789012345680590e+2.
PASS Number(-123.4567890123456789012).toExponential(16) is "-1.2345678901234568e+2"
FAIL Number(-123.4567890123456789012).toExponential(17) should be -1.23456789012345680e+2. Was -1.23456789012345681e+2.
FAIL Number(-123.4567890123456789012).toExponential(18) should be -1.234567890123456800e+2. Was -1.234567890123456806e+2.
FAIL Number(-123.4567890123456789012).toExponential(19) should be -1.2345678901234567000e+2. Was -1.2345678901234568059e+2.
FAIL Number(-123.4567890123456789012).toExponential(20) should be -1.23456789012345680000e+2. Was -1.23456789012345680590e+2.
PASS try { Number(-123.4567890123456789012).toExponential(21) } catch (e) { String(e).indexOf('Range') >= 0; } is true
PASS Number(.0000000000000000000001).toExponential() is "1e-22"
PASS Number(.0000000000000000000012).toExponential() is "1.2e-21"
......@@ -348,11 +348,11 @@ PASS Number(0.0001234567890123456789012345).toPrecision(13) is "0.00012345678901
PASS Number(0.0001234567890123456789012345).toPrecision(14) is "0.00012345678901235"
PASS Number(0.0001234567890123456789012345).toPrecision(15) is "0.000123456789012346"
PASS Number(0.0001234567890123456789012345).toPrecision(16) is "0.0001234567890123457"
FAIL Number(0.0001234567890123456789012345).toPrecision(17) should be 0.00012345678901234568. Was 0.00012345678901234567.
FAIL Number(0.0001234567890123456789012345).toPrecision(18) should be 0.000123456789012345680. Was 0.000123456789012345671.
FAIL Number(0.0001234567890123456789012345).toPrecision(19) should be 0.0001234567890123456800. Was 0.0001234567890123456713.
FAIL Number(0.0001234567890123456789012345).toPrecision(20) should be 0.00012345678901234567000. Was 0.00012345678901234567130.
FAIL Number(0.0001234567890123456789012345).toPrecision(21) should be 0.000123456789012345680000. Was 0.000123456789012345671298.
PASS Number(0.0001234567890123456789012345).toPrecision(17) is "0.00012345678901234567"
PASS Number(0.0001234567890123456789012345).toPrecision(18) is "0.000123456789012345671"
PASS Number(0.0001234567890123456789012345).toPrecision(19) is "0.0001234567890123456713"
PASS Number(0.0001234567890123456789012345).toPrecision(20) is "0.00012345678901234567130"
FAIL Number(0.0001234567890123456789012345).toPrecision(21) should be 0.000123456789012345671297. Was 0.000123456789012345671298.
PASS Number(12345.67890123456789012345).toPrecision() is "12345.678901234567"
PASS Number(12345.67890123456789012345).toPrecision(1) is "1e+4"
PASS Number(12345.67890123456789012345).toPrecision(2) is "1.2e+4"
......@@ -373,7 +373,7 @@ PASS Number(12345.67890123456789012345).toPrecision(16) is "12345.67890123457"
FAIL Number(12345.67890123456789012345).toPrecision(17) should be 12345.678901234568. Was 12345.678901234567.
FAIL Number(12345.67890123456789012345).toPrecision(18) should be 12345.6789012345660. Was 12345.6789012345671.
FAIL Number(12345.67890123456789012345).toPrecision(19) should be 12345.67890123456800. Was 12345.67890123456709.
FAIL Number(12345.67890123456789012345).toPrecision(20) should be 12345.678901234565000. Was 12345.678901234567093.
FAIL Number(12345.67890123456789012345).toPrecision(20) should be 12345.678901234567000. Was 12345.678901234567093.
FAIL Number(12345.67890123456789012345).toPrecision(21) should be 12345.6789012345670000. Was 12345.6789012345670926.
PASS Number(-.0000000012345).toPrecision(2) is "-1.2e-9"
PASS Number(-.000000012345).toPrecision(2) is "-1.2e-8"
......@@ -408,11 +408,11 @@ PASS Number(-0.0001234567890123456789012345).toPrecision(13) is "-0.000123456789
PASS Number(-0.0001234567890123456789012345).toPrecision(14) is "-0.00012345678901235"
PASS Number(-0.0001234567890123456789012345).toPrecision(15) is "-0.000123456789012346"
PASS Number(-0.0001234567890123456789012345).toPrecision(16) is "-0.0001234567890123457"
FAIL Number(-0.0001234567890123456789012345).toPrecision(17) should be -0.00012345678901234568. Was -0.00012345678901234567.
FAIL Number(-0.0001234567890123456789012345).toPrecision(18) should be -0.000123456789012345680. Was -0.000123456789012345671.
FAIL Number(-0.0001234567890123456789012345).toPrecision(19) should be -0.0001234567890123456800. Was -0.0001234567890123456713.
FAIL Number(-0.0001234567890123456789012345).toPrecision(20) should be -0.00012345678901234567000. Was -0.00012345678901234567130.
FAIL Number(-0.0001234567890123456789012345).toPrecision(21) should be -0.000123456789012345680000. Was -0.000123456789012345671298.
PASS Number(-0.0001234567890123456789012345).toPrecision(17) is "-0.00012345678901234567"
PASS Number(-0.0001234567890123456789012345).toPrecision(18) is "-0.000123456789012345671"
PASS Number(-0.0001234567890123456789012345).toPrecision(19) is "-0.0001234567890123456713"
PASS Number(-0.0001234567890123456789012345).toPrecision(20) is "-0.00012345678901234567130"
FAIL Number(-0.0001234567890123456789012345).toPrecision(21) should be -0.000123456789012345671297. Was -0.000123456789012345671298.
PASS Number(-12345.67890123456789012345).toPrecision() is "-12345.678901234567"
PASS Number(-12345.67890123456789012345).toPrecision(1) is "-1e+4"
PASS Number(-12345.67890123456789012345).toPrecision(2) is "-1.2e+4"
......@@ -433,7 +433,7 @@ PASS Number(-12345.67890123456789012345).toPrecision(16) is "-12345.67890123457"
FAIL Number(-12345.67890123456789012345).toPrecision(17) should be -12345.678901234568. Was -12345.678901234567.
FAIL Number(-12345.67890123456789012345).toPrecision(18) should be -12345.6789012345660. Was -12345.6789012345671.
FAIL Number(-12345.67890123456789012345).toPrecision(19) should be -12345.67890123456800. Was -12345.67890123456709.
FAIL Number(-12345.67890123456789012345).toPrecision(20) should be -12345.678901234565000. Was -12345.678901234567093.
FAIL Number(-12345.67890123456789012345).toPrecision(20) should be -12345.678901234567000. Was -12345.678901234567093.
FAIL Number(-12345.67890123456789012345).toPrecision(21) should be -12345.6789012345670000. Was -12345.6789012345670926.
PASS Number(0).toPrecision() is "0"
PASS Number(0).toPrecision(1) is "0"
......
......@@ -17,8 +17,8 @@ PASS (123.456).toExponential(3) is "1.235e+2"
PASS (123.456).toExponential(5) is "1.23456e+2"
PASS (123.456).toExponential(6) is "1.234560e+2"
PASS (123.456).toExponential(20) is "1.23456000000000003070e+2"
FAIL (123.456).toExponential(21) should be 1.234560000000000030695e+2. Threw exception RangeError: toExponential() argument must be between 0 and 20
FAIL (123.456).toExponential(100) should be 1.2345600000000000306954461848363280296325683593750000000000000000000000000000000000000000000000000000e+2. Threw exception RangeError: toExponential() argument must be between 0 and 20
PASS (123.456).toExponential(21) threw exception RangeError: toExponential() argument must be between 0 and 20.
PASS (123.456).toExponential(100) threw exception RangeError: toExponential() argument must be between 0 and 20.
PASS (123.456).toExponential(101) threw exception RangeError: toExponential() argument must be between 0 and 20.
PASS (123.456).toExponential(-1) threw exception RangeError: toExponential() argument must be between 0 and 20.
PASS (1234.567).toExponential(posInf) threw exception RangeError: toExponential() argument must be between 0 and 20.
......
......@@ -42,13 +42,13 @@ PASS (1234.567).toFixed(2) is "1234.57"
PASS (1234.567).toFixed(2.9) is "1234.57"
PASS (1234.567).toFixed(5) is "1234.56700"
PASS (1234.567).toFixed(20) is "1234.56700000000000727596"
FAIL (1234.567).toFixed(21) should be 1234.567000000000007275958. Threw exception RangeError: toFixed() digits argument must be between 0 and 20
FAIL (1234.567).toFixed(100) should be 1234.5670000000000072759576141834259033203125000000000000000000000000000000000000000000000000000000000000. Threw exception RangeError: toFixed() digits argument must be between 0 and 20
PASS (1234.567).toFixed(21) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(100) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(101) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
FAIL (1234.567).toFixed(-1) should be 1230. Threw exception RangeError: toFixed() digits argument must be between 0 and 20
FAIL (1234.567).toFixed(-4) should be 0. Threw exception RangeError: toFixed() digits argument must be between 0 and 20
FAIL (1234.567).toFixed(-5) should be 0. Threw exception RangeError: toFixed() digits argument must be between 0 and 20
FAIL (1234.567).toFixed(-20) should be 0. Threw exception RangeError: toFixed() digits argument must be between 0 and 20
PASS (1234.567).toFixed(-1) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(-4) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(-5) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(-20) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(-21) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(posInf) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
PASS (1234.567).toFixed(negInf) threw exception RangeError: toFixed() digits argument must be between 0 and 20.
......
......@@ -23,8 +23,8 @@ PASS (1234.567).toPrecision(2) is "1.2e+3"
PASS (1234.567).toPrecision(2.9) is "1.2e+3"
PASS (1234.567).toPrecision(5) is "1234.6"
PASS (1234.567).toPrecision(21) is "1234.56700000000000728"
FAIL (1234.567).toPrecision(22) should be 1234.567000000000007276. Threw exception RangeError: toPrecision() argument must be between 1 and 21
FAIL (1234.567).toPrecision(100) should be 1234.567000000000007275957614183425903320312500000000000000000000000000000000000000000000000000000000. Threw exception RangeError: toPrecision() argument must be between 1 and 21
PASS (1234.567).toPrecision(22) threw exception RangeError: toPrecision() argument must be between 1 and 21.
PASS (1234.567).toPrecision(100) threw exception RangeError: toPrecision() argument must be between 1 and 21.
PASS (1234.567).toPrecision(101) threw exception RangeError: toPrecision() argument must be between 1 and 21.
PASS (1234.567).toPrecision(posInf) threw exception RangeError: toPrecision() argument must be between 1 and 21.
PASS (1234.567).toPrecision(negInf) threw exception RangeError: toPrecision() argument must be between 1 and 21.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment