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.1_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.1_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.1_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.1_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.1_T01.js
deleted file mode 100644
index c975a30e5..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.1_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.1_T01;
- * @section: 15.7.4.5;
- * @assertion: Step 1: Let f be ToInteger(fractionDigits). (If fractionDigits
- * is undefined, this step produces the value 0);
- * @description: calling on Number prototype object;
-*/
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.7.4.5_A1.1_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.1_T01.js",
-
-assertion: "Step 1: Let f be ToInteger(fractionDigits). (If fractionDigits",
-
-description: "calling on Number prototype object",
-
-test: function testcase() {
- //CHECK#1
-if(Number.prototype.toFixed() !== "0"){
- $ERROR('#1: Number.prototype.toFixed() === "0"');
-}
-
-//CHECK#2
-if(Number.prototype.toFixed(0) !== "0"){
- $ERROR('#2: Number.prototype.toFixed(0) === "0"');
-}
-
-//CHECK#3
-if(Number.prototype.toFixed(1) !== "0.0"){
- $ERROR('#3: Number.prototype.toFixed(1) === "0.0"');
-}
-
-//CHECK#4
-if(Number.prototype.toFixed(1.1) !== "0.0"){
- $ERROR('#4: Number.prototype.toFixed(1.1) === "0.0"');
-}
-
-//CHECK#5
-if(Number.prototype.toFixed(0.9) !== "0"){
- $ERROR('#5: Number.prototype.toFixed(0.9) === "0"');
-}
-
-//CHECK#6
-if(Number.prototype.toFixed("1") !== "0.0"){
- $ERROR('#6: Number.prototype.toFixed("1") === "0.0"');
-}
-
-//CHECK#7
-if(Number.prototype.toFixed("1.1") !== "0.0"){
- $ERROR('#7: Number.prototype.toFixed("1.1") === "0.0"');
-}
-
-//CHECK#8
-if(Number.prototype.toFixed("0.9") !== "0"){
- $ERROR('#8: Number.prototype.toFixed("0.9") === "0"');
-}
-
-//CHECK#9
-if(Number.prototype.toFixed(Number.NaN) !== "0"){
- $ERROR('#9: Number.prototype.toFixed(Number.NaN) === "0"');
-}
-
-//CHECK#10
-if(Number.prototype.toFixed("some string") !== "0"){
- $ERROR('#9: Number.prototype.toFixed("some string") === "0"');
-}
-
-//CHECK#10
-try{
- if(Number.prototype.toFixed(-0.1) !== "0"){
- $ERROR('#10: Number.prototype.toFixed(-0.1) === "0"');
- }
-}
-catch(e){
- $ERROR('#10: Number.prototype.toFixed(-0.1) should not throw '+e);
-}
-
- }
-});
-