Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1852)

Unified Diff: mozilla-tests/ecma_3/Number/15.7.4.7-1.js

Issue 2865028: Update the mozilla tests to new version (as of 2010-06-29). (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mozilla-tests/ecma_3/Number/15.7.4.6-1.js ('k') | mozilla-tests/ecma_3/Object/8.6.2.6-002.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mozilla-tests/ecma_3/Number/15.7.4.7-1.js
===================================================================
--- mozilla-tests/ecma_3/Number/15.7.4.7-1.js (revision 43940)
+++ mozilla-tests/ecma_3/Number/15.7.4.7-1.js (working copy)
@@ -67,7 +67,22 @@
expect = '5.123';
captureThis();
+status = 'Section B of test: Infinity.toPrecision() with out-of-range fractionDigits';
+actual = Number.POSITIVE_INFINITY.toPrecision(-3);
+expect = 'Infinity';
+captureThis();
+status = 'Section C of test: -Infinity.toPrecision() with out-of-range fractionDigits';
+actual = Number.NEGATIVE_INFINITY.toPrecision(-3);
+expect = '-Infinity';
+captureThis();
+
+status = 'Section D of test: NaN.toPrecision() with out-of-range fractionDigits';
+actual = Number.NaN.toPrecision(-3);
+expect = 'NaN';
+captureThis();
+
+
/////////////////////////// OOPS.... ///////////////////////////////
/*************************************************************************
* 15.7.4.7 Number.prototype.toPrecision(precision)
« no previous file with comments | « mozilla-tests/ecma_3/Number/15.7.4.6-1.js ('k') | mozilla-tests/ecma_3/Object/8.6.2.6-002.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698