diff --git a/test/built-ins/parseFloat/S15.1.2.3_A1_T7.js b/test/built-ins/parseFloat/S15.1.2.3_A1_T7.js index 6b52c12509..fd3ab6b665 100644 --- a/test/built-ins/parseFloat/S15.1.2.3_A1_T7.js +++ b/test/built-ins/parseFloat/S15.1.2.3_A1_T7.js @@ -17,7 +17,7 @@ assert.sameValue(parseFloat(object), NaN, "{valueOf: function() {return 1}}"); var object = {valueOf: function() {return 1}, toString: function() {return 0}}; if (parseFloat(object) !== 0) { $ERROR('#2: var object = {valueOf: function() {return 1}, toString: function() {return 0}}; parseFloat(object) === 0. Actual: ' + (parseFloat(object))); -} +} //CHECK#3 var object = {valueOf: function() {return 1}, toString: function() {return {}}}; @@ -57,11 +57,11 @@ try { var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; parseFloat(object); $ERROR('#7.1: var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; parseFloat(object) throw "error". Actual: ' + (parseFloat(object))); -} +} catch (e) { if (e !== "error") { $ERROR('#7.2: var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; parseFloat(object) throw "error". Actual: ' + (e)); - } + } } //CHECK#8 @@ -69,9 +69,9 @@ try { var object = {valueOf: function() {return {}}, toString: function() {return {}}}; parseFloat(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; parseFloat(object) throw TypeError. Actual: ' + (parseFloat(object))); -} +} catch (e) { if ((e instanceof TypeError) !== true) { $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; parseFloat(object) throw TypeError. Actual: ' + (e)); - } + } } diff --git a/test/built-ins/parseFloat/S15.1.2.3_A2_T10.js b/test/built-ins/parseFloat/S15.1.2.3_A2_T10.js index 036b0891a3..d17cbca4b3 100644 --- a/test/built-ins/parseFloat/S15.1.2.3_A2_T10.js +++ b/test/built-ins/parseFloat/S15.1.2.3_A2_T10.js @@ -16,7 +16,7 @@ var errorCount = 0; var uspU = ["\u1680", "\u2000", "\u2001", "\u2002", "\u2003", "\u2004", "\u2005", "\u2006", "\u2007", "\u2008", "\u2009", "\u200A", "\u202F", "\u205F", "\u3000"]; var uspS = ["1680", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "200A", "202F", "205F", "3000"]; for (var index = 0; index < uspU.length; index++) { - var result = true; + var result = true; n = false; if (parseFloat(uspU[index] + "1.1") !== parseFloat("1.1")) { $ERROR('#1.' + uspS[index] + ' '); diff --git a/test/built-ins/parseFloat/S15.1.2.3_A6.js b/test/built-ins/parseFloat/S15.1.2.3_A6.js index 7764f21ddc..3c99b199a2 100644 --- a/test/built-ins/parseFloat/S15.1.2.3_A6.js +++ b/test/built-ins/parseFloat/S15.1.2.3_A6.js @@ -19,31 +19,31 @@ var errorCount = 0; var count = 0; var indexP; var indexO = 0; -for (var index = 0; index <= 65535; index++) { - if ((index < 0x0030) || (index > 0x0039)) { +for (var index = 0; index <= 65535; index++) { + if ((index < 0x0030) || (index > 0x0039)) { var hex = decimalToHexString(index); - if (parseFloat("0.1e1" + String.fromCharCode(index)) !== 1) { - if (indexO === 0) { + if (parseFloat("0.1e1" + String.fromCharCode(index)) !== 1) { + if (indexO === 0) { indexO = index; } else { - if ((index - indexP) !== 1) { + if ((index - indexP) !== 1) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); $ERROR('#' + hexO + '-' + hexP + ' '); - } + } else { var hexP = decimalToHexString(indexP); $ERROR('#' + hexP + ' '); - } + } indexO = index; - } + } } indexP = index; - errorCount++; - } + errorCount++; + } count++; - } + } } if (errorCount > 0) { @@ -54,6 +54,6 @@ if (errorCount > 0) { } else { var hexP = decimalToHexString(indexP); $ERROR('#' + hexP + ' '); - } + } $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/parseFloat/S15.1.2.3_A7.1.js b/test/built-ins/parseFloat/S15.1.2.3_A7.1.js index c43eb7d136..5013eea27f 100644 --- a/test/built-ins/parseFloat/S15.1.2.3_A7.1.js +++ b/test/built-ins/parseFloat/S15.1.2.3_A7.1.js @@ -19,7 +19,7 @@ var result = true; for (var p in parseFloat){ if (p === "length") { result = false; - } + } } if (result !== true) { diff --git a/test/built-ins/parseFloat/S15.1.2.3_A7.5.js b/test/built-ins/parseFloat/S15.1.2.3_A7.5.js index 4e23bb6306..19984b429b 100644 --- a/test/built-ins/parseFloat/S15.1.2.3_A7.5.js +++ b/test/built-ins/parseFloat/S15.1.2.3_A7.5.js @@ -19,7 +19,7 @@ var result = true; for (var p in this){ if (p === "parseFloat") { result = false; - } + } } if (result !== true) {