aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/15_Native/15.7_Number_Objects/15.7.4_Properties_of_the_Number_Prototype_Object/15.7.4.5_Number.prototype.toFixed/S15.7.4.5_A1.3_T01.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/15_Native/15.7_Number_Objects/15.7.4_Properties_of_the_Number_Prototype_Object/15.7.4.5_Number.prototype.toFixed/S15.7.4.5_A1.3_T01.js')
-rw-r--r--test/suite/sputnik_converted/15_Native/15.7_Number_Objects/15.7.4_Properties_of_the_Number_Prototype_Object/15.7.4.5_Number.prototype.toFixed/S15.7.4.5_A1.3_T01.js87
1 files changed, 0 insertions, 87 deletions
diff --git a/test/suite/sputnik_converted/15_Native/15.7_Number_Objects/15.7.4_Properties_of_the_Number_Prototype_Object/15.7.4.5_Number.prototype.toFixed/S15.7.4.5_A1.3_T01.js b/test/suite/sputnik_converted/15_Native/15.7_Number_Objects/15.7.4_Properties_of_the_Number_Prototype_Object/15.7.4.5_Number.prototype.toFixed/S15.7.4.5_A1.3_T01.js
deleted file mode 100644
index 09186b55d..000000000
--- a/test/suite/sputnik_converted/15_Native/15.7_Number_Objects/15.7.4_Properties_of_the_Number_Prototype_Object/15.7.4.5_Number.prototype.toFixed/S15.7.4.5_A1.3_T01.js
+++ /dev/null
@@ -1,87 +0,0 @@
-// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
- * @name: S15.7.4.5_A1.3_T01;
- * @section: 15.7.4.5;
- * @assertion: Step 4: If this number value is NaN, return the string "NaN";
- * @description: NaN is computed by new Number("string");
-*/
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.7.4.5_A1.3_T01",
-
-path: "TestCases/15_Native/15.7_Number_Objects/15.7.4_Properties_of_the_Number_Prototype_Object/15.7.4.5_Number.prototype.toFixed/S15.7.4.5_A1.3_T01.js",
-
-assertion: "Step 4: If this number value is NaN, return the string \"NaN\"",
-
-description: "NaN is computed by new Number(\"string\")",
-
-test: function testcase() {
- //CHECK#1
-if((new Number("a")).toFixed() !== "NaN"){
- $ERROR('#1: (new Number("a")).prototype.toFixed() === "NaN"');
-}
-
-//CHECK#2
-if((new Number("a")).toFixed(0) !== "NaN"){
- $ERROR('#2: (new Number("a")).prototype.toFixed(0) === "NaN"');
-}
-
-//CHECK#3
-if((new Number("a")).toFixed(1) !== "NaN"){
- $ERROR('#3: (new Number("a")).prototype.toFixed(1) === "NaN"');
-}
-
-//CHECK#4
-if((new Number("a")).toFixed(1.1) !== "NaN"){
- $ERROR('#4: (new Number("a")).toFixed(1.1) === "NaN"');
-}
-
-//CHECK#5
-if((new Number("a")).toFixed(0.9) !== "NaN"){
- $ERROR('#5: (new Number("a")).toFixed(0.9) === "NaN"');
-}
-
-//CHECK#6
-if((new Number("a")).toFixed("1") !== "NaN"){
- $ERROR('#6: (new Number("a")).toFixed("1") === "NaN"');
-}
-
-//CHECK#7
-if((new Number("a")).toFixed("1.1") !== "NaN"){
- $ERROR('#7: (new Number("a")).toFixed("1.1") === "NaN"');
-}
-
-//CHECK#8
-if((new Number("a")).toFixed("0.9") !== "NaN"){
- $ERROR('#8: (new Number("a")).toFixed("0.9") === "NaN"');
-}
-
-//CHECK#9
-if((new Number("a")).toFixed(Number.NaN) !== "NaN"){
- $ERROR('#9: (new Number("a")).toFixed(Number.NaN) === "NaN"');
-}
-
-//CHECK#10
-if((new Number("a")).toFixed("some string") !== "NaN"){
- $ERROR('#9: (new Number("a")).toFixed("some string") === "NaN"');
-}
-
-//CHECK#10
-try{
- s = (new Number("a")).toFixed(Number.POSITIVE_INFINITY);
- $ERROR('#10: (new Number("a")).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not return NaN');
-}
-catch(e){
- if(!(e instanceof RangeError)){
- $ERROR('#10: (new Number("a")).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not '+e);
- }
-}
-
- }
-});
-