diff --git a/test/built-ins/Boolean/prototype/S15.6.3.1_A1.js b/test/built-ins/Boolean/prototype/S15.6.3.1_A1.js index f0858ab33c..abdd3fb88a 100644 --- a/test/built-ins/Boolean/prototype/S15.6.3.1_A1.js +++ b/test/built-ins/Boolean/prototype/S15.6.3.1_A1.js @@ -15,17 +15,12 @@ if (typeof Boolean.prototype !== "object") { } //CHECK#2 -try { - (Boolean.prototype != false); - $ERROR('#2: "(Boolean.prototype != false);" lead to throwing exception. Actual: '+(Boolean.prototype != false)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#2.1: "(Boolean.prototype != false)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if (Boolean.prototype != false) { + $ERROR('#2: Boolean.prototype == false'); } delete Boolean.prototype.toString; -if (Boolean.prototype.toString() !== "[object Object]") { - $ERROR('#3: The [[Class]] property of the Boolean prototype object is set to "Object"'); +if (Boolean.prototype.toString() !== "[object Boolean]") { + $ERROR('#3: The [[Class]] property of the Boolean prototype object is set to "Boolean"'); } diff --git a/test/built-ins/Boolean/prototype/S15.6.4_A1.js b/test/built-ins/Boolean/prototype/S15.6.4_A1.js index 10abf744ed..dcec08f4e0 100644 --- a/test/built-ins/Boolean/prototype/S15.6.4_A1.js +++ b/test/built-ins/Boolean/prototype/S15.6.4_A1.js @@ -3,8 +3,8 @@ /*--- info: > - The Boolean prototype object is itself not a Boolean object - (its [[Class]] is "Object") + The Boolean prototype object is itself a Boolean object + (its [[Class]] is "Boolean") whose value is false es5id: 15.6.4_A1 description: Checking type and value of Boolean.prototype ---*/ @@ -15,17 +15,12 @@ if (typeof Boolean.prototype !== "object") { } //CHECK#2 -try { - (Boolean.prototype != false); - $ERROR('#2: "(Boolean.prototype != false);" lead to throwing exception. Actual: '+(Boolean.prototype != false)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#2.1: "(Boolean.prototype != false)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if (Boolean.prototype != false) { + $ERROR('#2: Boolean.prototype == false'); } delete Boolean.prototype.toString; -if (Boolean.prototype.toString() !== "[object Object]") { - $ERROR('#3: The [[Class]] property of the Boolean prototype object is set to "Object"'); +if (Boolean.prototype.toString() !== "[object Boolean]") { + $ERROR('#3: The [[Class]] property of the Boolean prototype object is set to "Boolean"'); } diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js index c07ecbd6ea..e81cacc799 100644 --- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js +++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js @@ -11,13 +11,8 @@ description: no arguments ---*/ //CHECK#1 -try { - (Boolean.prototype.toString() !== "false"); - $ERROR('#1: "(Boolean.prototype.toString() !== "false");" lead to throwing exception. Actual: '+(Boolean.prototype.toString() !== "false")); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "(Boolean.prototype.toString() !== "false")" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Boolean.prototype.toString() !== "false"){ + $ERROR('#1: Boolean.prototype.toString() === "false"'); } //CHECK#2 diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js index 197723a1e9..310256bf6f 100644 --- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js +++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js @@ -11,13 +11,8 @@ description: with some argument ---*/ //CHECK#1 -try { - (Boolean.prototype.toString(true) !== "false"); - $ERROR('#1: "(Boolean.prototype.toString(true) !== "false");" lead to throwing exception. Actual: '+(Boolean.prototype.toString(true) !== "false")); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "(Boolean.prototype.toString(true) !== "false")" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Boolean.prototype.toString(true) !== "false"){ + $ERROR('#1: Boolean.prototype.toString(true) === "false"'); } //CHECK#2 diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js index 65d1b21bb3..27e0a89360 100644 --- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js +++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js @@ -8,13 +8,8 @@ description: no arguments ---*/ //CHECK#1 -try { - (Boolean.prototype.valueOf() !== false); - $ERROR('#1: "(Boolean.prototype.valueOf() !== false);" lead to throwing exception. Actual: '+(Boolean.prototype.valueOf() !== false)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "(Boolean.prototype.valueOf() !== false)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Boolean.prototype.valueOf() !== false){ + $ERROR('#1: Boolean.prototype.valueOf() === false'); } //CHECK#2 diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js index 8d803efd65..9300d4e856 100644 --- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js +++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js @@ -8,13 +8,8 @@ description: calling with argument ---*/ //CHECK#1 -try { - (Boolean.prototype.valueOf(true) !== false); - $ERROR('#1: "(Boolean.prototype.valueOf(true) !== false);" lead to throwing exception. Actual: '+(Boolean.prototype.valueOf(true) !== false)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "(Boolean.prototype.valueOf(true) !== false)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Boolean.prototype.valueOf(true) !== false){ + $ERROR('#1: Boolean.prototype.valueOf(true) === false'); } //CHECK#2 diff --git a/test/built-ins/Date/15.9.1.15-1.js b/test/built-ins/Date/15.9.1.15-1.js index eef35a051e..bd835b3a45 100644 --- a/test/built-ins/Date/15.9.1.15-1.js +++ b/test/built-ins/Date/15.9.1.15-1.js @@ -10,7 +10,7 @@ description: > ---*/ var result = false; - var expectedDateTimeStr = new Date(1970, 0, 1, 0, 0, 0, 0).toISOString(); + var expectedDateTimeStr = "1970-01-01T00:00:00.000Z"; var dateObj = new Date("1970"); var dateStr = dateObj.toISOString(); result = dateStr === expectedDateTimeStr; diff --git a/test/built-ins/Number/15.7.4-1.js b/test/built-ins/Number/15.7.4-1.js index f9e919bad0..7b620b069d 100644 --- a/test/built-ins/Number/15.7.4-1.js +++ b/test/built-ins/Number/15.7.4-1.js @@ -3,10 +3,10 @@ /*--- es5id: 15.7.4-1 -description: "Number prototype object: its [[Class]] must be 'Object'" +description: "Number prototype object: its [[Class]] must be 'Number'" ---*/ var numProto = Object.getPrototypeOf(new Number(42)); var s = Object.prototype.toString.call(numProto ); -assert.sameValue(s, '[object Object]', 's'); +assert.sameValue(s, '[object Number]', 's'); diff --git a/test/built-ins/Number/prototype/S15.7.3.1_A2_T1.js b/test/built-ins/Number/prototype/S15.7.3.1_A2_T1.js index 08a68e1274..a953798339 100644 --- a/test/built-ins/Number/prototype/S15.7.3.1_A2_T1.js +++ b/test/built-ins/Number/prototype/S15.7.3.1_A2_T1.js @@ -2,7 +2,7 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -info: Number.prototype is itself not a Number object +info: Number.prototype is itself Number object es5id: 15.7.3.1_A2_T1 description: > Checking type of Number.prototype property - test based on @@ -16,6 +16,6 @@ if (typeof Number.prototype !== "object") { delete Number.prototype.toString; -if (Number.prototype.toString() !== "[object Object]") { - $ERROR('#3: The [[Class]] property of the Number prototype object is set to "Object"'); +if (Number.prototype.toString() !== "[object Number]") { + $ERROR('#3: The [[Class]] property of the Number prototype object is set to "Number"'); } diff --git a/test/built-ins/Number/prototype/S15.7.3.1_A2_T2.js b/test/built-ins/Number/prototype/S15.7.3.1_A2_T2.js index 1e6eaacfbc..c69df9a8b2 100644 --- a/test/built-ins/Number/prototype/S15.7.3.1_A2_T2.js +++ b/test/built-ins/Number/prototype/S15.7.3.1_A2_T2.js @@ -2,7 +2,7 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -info: Number.prototype is itself not a Number object +info: Number.prototype is itself Number object es5id: 15.7.3.1_A2_T2 description: > Checking type of Number.prototype property - test based on @@ -16,6 +16,6 @@ if (typeof Number.prototype !== "object") { Number.prototype.toString = Object.prototype.toString; -if (Number.prototype.toString() !== "[object Object]") { - $ERROR('#3: The [[Class]] property of the Number prototype object is set to "Object"'); +if (Number.prototype.toString() !== "[object Number]") { + $ERROR('#3: The [[Class]] property of the Number prototype object is set to "Number"'); } diff --git a/test/built-ins/Number/prototype/S15.7.3.1_A3.js b/test/built-ins/Number/prototype/S15.7.3.1_A3.js index f871b3dbaf..5f86ce5fa5 100644 --- a/test/built-ins/Number/prototype/S15.7.3.1_A3.js +++ b/test/built-ins/Number/prototype/S15.7.3.1_A3.js @@ -2,17 +2,14 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -info: Number.prototype value is not +0 +info: Number.prototype value is +0 es5id: 15.7.3.1_A3 description: Checking value of Number.prototype property ---*/ //CHECK#1 -try { - (Number.prototype != 0); - $ERROR('#1: "(Number.prototype != 0);" lead to throwing exception. Actual: '+(Number.prototype != 0)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "(Number.prototype != 0)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if (Number.prototype != 0) { + $ERROR('#2: Number.prototype == +0'); +} else if( 1/Number.prototype != Number.POSITIVE_INFINITY){ + $ERROR('#2: Number.prototype == +0'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A1.js b/test/built-ins/Number/prototype/S15.7.4_A1.js index e9298a46a3..6b69865b7a 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A1.js +++ b/test/built-ins/Number/prototype/S15.7.4_A1.js @@ -3,7 +3,7 @@ /*--- info: > - The Number prototype object is itself a not Number object + The Number prototype object is itself a Number object (its [[Class]] is "Number") whose value is +0 es5id: 15.7.4_A1 description: Checking type and value of Number.prototype property @@ -15,17 +15,14 @@ if (typeof Number.prototype !== "object") { } //CHECK#2 -try { - (Number.prototype != 0); - $ERROR('#2: "(Number.prototype != 0);" lead to throwing exception. Actual: '+(Number.prototype != 0)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#2.1: "(Number.prototype != 0)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if (Number.prototype != 0) { + $ERROR('#2: Number.prototype == +0'); +} else if( 1/Number.prototype != Number.POSITIVE_INFINITY){ + $ERROR('#2: Number.prototype == +0'); } delete Number.prototype.toString; -if (Number.prototype.toString() !== "[object Object]") { - $ERROR('#3: The [[Class]] property of the Number prototype object is set to "Object"'); +if (Number.prototype.toString() !== "[object Number]") { + $ERROR('#3: The [[Class]] property of the Number prototype object is set to "Number"'); } diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js index 52dd8f250c..a6f41496d9 100644 --- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js +++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js @@ -10,111 +10,62 @@ description: calling on Number prototype object ---*/ //CHECK#1 -try { - Number.prototype.toFixed(); - $ERROR('#1: "Number.prototype.toFixed();" lead to throwing exception. Actual: '+Number.prototype.toFixed()); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toFixed()" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toFixed() !== "0"){ + $ERROR('#1: Number.prototype.toFixed() === "0"'); } //CHECK#2 -try { - Number.prototype.toFixed(0); - $ERROR('#2: "Number.prototype.toFixed(0);" lead to throwing exception. Actual: '+Number.prototype.toFixed(0)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#2.1: "Number.prototype.toFixed(0)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toFixed(0) !== "0"){ + $ERROR('#2: Number.prototype.toFixed(0) === "0"'); } //CHECK#3 -try { - Number.prototype.toFixed(1); - $ERROR('#3: "Number.prototype.toFixed(1);" lead to throwing exception. Actual: '+Number.prototype.toFixed(1)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#3.1: "Number.prototype.toFixed(1)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toFixed(1) !== "0.0"){ + $ERROR('#3: Number.prototype.toFixed(1) === "0.0"'); } //CHECK#4 -try { - Number.prototype.toFixed(1.1); - $ERROR('#4: "Number.prototype.toFixed(1.1);" lead to throwing exception. Actual: '+Number.prototype.toFixed(1.1)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#4.1: "Number.prototype.toFixed(1.1)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toFixed(1.1) !== "0.0"){ + $ERROR('#4: Number.prototype.toFixed(1.1) === "0.0"'); } //CHECK#5 -try { - Number.prototype.toFixed(0.9); - $ERROR('#5: "Number.prototype.toFixed(0.9);" lead to throwing exception. Actual: '+Number.prototype.toFixed(0.9)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#5.1: "Number.prototype.toFixed(0.9)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toFixed(0.9) !== "0"){ + $ERROR('#5: Number.prototype.toFixed(0.9) === "0"'); } + //CHECK#6 -try { - Number.prototype.toFixed("1"); - $ERROR('#6: "Number.prototype.toFixed("1");" lead to throwing exception. Actual: '+Number.prototype.toFixed("1")); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#6.1: "Number.prototype.toFixed("1")" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toFixed("1") !== "0.0"){ + $ERROR('#6: Number.prototype.toFixed("1") === "0.0"'); } //CHECK#7 -try { - Number.prototype.toFixed("1.1"); - $ERROR('#7: "Number.prototype.toFixed("1.1");" lead to throwing exception. Actual: '+Number.prototype.toFixed("1.1")); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#7.1: "Number.prototype.toFixed("1.1")" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toFixed("1.1") !== "0.0"){ + $ERROR('#7: Number.prototype.toFixed("1.1") === "0.0"'); } //CHECK#8 -try { - Number.prototype.toFixed("0.9"); - $ERROR('#8: "Number.prototype.toFixed("0.9");" lead to throwing exception. Actual: '+Number.prototype.toFixed("0.9")); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#8.1: "Number.prototype.toFixed("0.9")" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toFixed("0.9") !== "0"){ + $ERROR('#8: Number.prototype.toFixed("0.9") === "0"'); } //CHECK#9 -try { - Number.prototype.toFixed(Number.NaN); - $ERROR('#9: "Number.prototype.toFixed(Number.NaN);" lead to throwing exception. Actual: '+Number.prototype.toFixed(Number.NaN)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#9.1: "Number.prototype.toFixed(Number.NaN)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toFixed(Number.NaN) !== "0"){ + $ERROR('#9: Number.prototype.toFixed(Number.NaN) === "0"'); } //CHECK#10 -try { - Number.prototype.toFixed("some string"); - $ERROR('#10: "Number.prototype.toFixed("some string");" lead to throwing exception. Actual: '+Number.prototype.toFixed("some string")); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#10.1: "Number.prototype.toFixed("some string")" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toFixed("some string") !== "0"){ + $ERROR('#9: Number.prototype.toFixed("some string") === "0"'); } //CHECK#11 -try { - Number.prototype.toFixed(-0.1); - $ERROR('#11: "Number.prototype.toFixed(-0.1);" lead to throwing exception. Actual: '+Number.prototype.toFixed(-0.1)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#11.1: "Number.prototype.toFixed(-0.1)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); +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); +} diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js index 3f9fe5efd6..7fcef1cb9d 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js @@ -11,13 +11,8 @@ description: undefined radix ---*/ //CHECK#1 -try { - Number.prototype.toString(); - $ERROR('#1: "Number.prototype.toString();" lead to throwing exception. Actual: '+Number.prototype.toString()); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString()" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString() !== "0"){ + $ERROR('#1: Number.prototype.toString() === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js index fbcf79a43a..03aacb9a7b 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js @@ -11,13 +11,8 @@ description: radix is 10 ---*/ //CHECK#1 -try { - Number.prototype.toString(10); - $ERROR('#1: "Number.prototype.toString(10);" lead to throwing exception. Actual: '+Number.prototype.toString(10)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(10)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(10) !== "0"){ + $ERROR('#1: Number.prototype.toString(10) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js index a9268767d7..2b701765e4 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js @@ -11,13 +11,8 @@ description: radix is undefined value ---*/ //CHECK#1 -try { - Number.prototype.toString(undefined); - $ERROR('#1: "Number.prototype.toString(undefined);" lead to throwing exception. Actual: '+Number.prototype.toString(undefined)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(undefined)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(undefined) !== "0"){ + $ERROR('#1: Number.prototype.toString(undefined) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js index 3aa5adc68a..bf2534bb61 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js @@ -10,13 +10,8 @@ description: radix is 2 ---*/ //CHECK#1 -try { - Number.prototype.toString(2); - $ERROR('#1: "Number.prototype.toString(2);" lead to throwing exception. Actual: '+Number.prototype.toString(2)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(2)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(2) !== "0"){ + $ERROR('#1: Number.prototype.toString(2) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js index db8be670e5..a9b2ef733f 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js @@ -10,13 +10,8 @@ description: radix is 3 ---*/ //CHECK#1 -try { - Number.prototype.toString(3); - $ERROR('#1: "Number.prototype.toString(3);" lead to throwing exception. Actual: '+Number.prototype.toString(3)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(3)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(3) !== "0"){ + $ERROR('#1: Number.prototype.toString(3) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js index c8c5f4810d..00761b262c 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js @@ -10,13 +10,8 @@ description: radix is 4 ---*/ //CHECK#1 -try { - Number.prototype.toString(4); - $ERROR('#1: "Number.prototype.toString(4);" lead to throwing exception. Actual: '+Number.prototype.toString(4)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(4)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(4) !== "0"){ + $ERROR('#1: Number.prototype.toString(4) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js index ddc77efe4e..27f30f4eae 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js @@ -10,13 +10,8 @@ description: radix is 5 ---*/ //CHECK#1 -try { - Number.prototype.toString(5); - $ERROR('#1: "Number.prototype.toString(5);" lead to throwing exception. Actual: '+Number.prototype.toString(5)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(5)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(5) !== "0"){ + $ERROR('#1: Number.prototype.toString(5) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js index 78e4da18c1..fd022b515b 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js @@ -10,13 +10,8 @@ description: radix is 6 ---*/ //CHECK#1 -try { - Number.prototype.toString(6); - $ERROR('#1: "Number.prototype.toString(6);" lead to throwing exception. Actual: '+Number.prototype.toString(6)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(6)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(6) !== "0"){ + $ERROR('#1: Number.prototype.toString(6) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js index cea2494f3b..4ddf517df3 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js @@ -10,13 +10,8 @@ description: radix is 7 ---*/ //CHECK#1 -try { - Number.prototype.toString(7); - $ERROR('#1: "Number.prototype.toString(7);" lead to throwing exception. Actual: '+Number.prototype.toString(7)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(7)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(7) !== "0"){ + $ERROR('#1: Number.prototype.toString(7) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js index fc95af5399..ff85a71490 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js @@ -10,13 +10,8 @@ description: radix is 8 ---*/ //CHECK#1 -try { - Number.prototype.toString(8); - $ERROR('#1: "Number.prototype.toString(8);" lead to throwing exception. Actual: '+Number.prototype.toString(8)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(8)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(8) !== "0"){ + $ERROR('#1: Number.prototype.toString(8) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js index a9f8b90ba0..6f673ab013 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js @@ -10,14 +10,10 @@ description: radix is 9 ---*/ //CHECK#1 -try { - Number.prototype.toString(9); - $ERROR('#1: "Number.prototype.toString(9);" lead to throwing exception. Actual: '+Number.prototype.toString(9)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(9)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(9) !== "0"){ + $ERROR('#1: Number.prototype.toString(9) === "0"'); } + //CHECK#2 if((new Number()).toString(9) !== "0"){ $ERROR('#2: (new Number()).toString(9) === "0"'); diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js index 485b151af0..f9e5852baa 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js @@ -10,13 +10,8 @@ description: radix is 11 ---*/ //CHECK#1 -try { - Number.prototype.toString(11); - $ERROR('#1: "Number.prototype.toString(11);" lead to throwing exception. Actual: '+Number.prototype.toString(11)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(11)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(11) !== "0"){ + $ERROR('#1: Number.prototype.toString(11) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js index fdac0c2ea7..5d53c2bef2 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js @@ -10,13 +10,8 @@ description: radix is 12 ---*/ //CHECK#1 -try { - Number.prototype.toString(12); - $ERROR('#1: "Number.prototype.toString(12);" lead to throwing exception. Actual: '+Number.prototype.toString(12)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(12)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(12) !== "0"){ + $ERROR('#1: Number.prototype.toString(12) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js index 9c7386d35d..abd79ee344 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js @@ -10,13 +10,8 @@ description: radix is 13 ---*/ //CHECK#1 -try { - Number.prototype.toString(13); - $ERROR('#1: "Number.prototype.toString(13);" lead to throwing exception. Actual: '+Number.prototype.toString(13)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(13)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(13) !== "0"){ + $ERROR('#1: Number.prototype.toString(13) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js index 36aa89a635..4b9dcd6301 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js @@ -10,13 +10,8 @@ description: radix is 14 ---*/ //CHECK#1 -try { - Number.prototype.toString(14); - $ERROR('#1: "Number.prototype.toString(14);" lead to throwing exception. Actual: '+Number.prototype.toString(14)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(14)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(14) !== "0"){ + $ERROR('#1: Number.prototype.toString(14) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js index 72a7972bfc..f134115029 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js @@ -10,13 +10,8 @@ description: radix is 15 ---*/ //CHECK#1 -try { - Number.prototype.toString(15); - $ERROR('#1: "Number.prototype.toString(15);" lead to throwing exception. Actual: '+Number.prototype.toString(15)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(15)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(15) !== "0"){ + $ERROR('#1: Number.prototype.toString(15) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js index bb44fb6f1e..f78fe04dd5 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js @@ -10,13 +10,8 @@ description: radix is 16 ---*/ //CHECK#1 -try { - Number.prototype.toString(16); - $ERROR('#1: "Number.prototype.toString(16);" lead to throwing exception. Actual: '+Number.prototype.toString(16)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(16)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(16) !== "0"){ + $ERROR('#1: Number.prototype.toString(16) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js index fae5b8ac0e..bf5cfe27f3 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js @@ -10,13 +10,8 @@ description: radix is 17 ---*/ //CHECK#1 -try { - Number.prototype.toString(17); - $ERROR('#1: "Number.prototype.toString(17);" lead to throwing exception. Actual: '+Number.prototype.toString(17)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(17)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(17) !== "0"){ + $ERROR('#1: Number.prototype.toString(17) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js index 51debe3575..002e0cfeb4 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js @@ -10,13 +10,8 @@ description: radix is 18 ---*/ //CHECK#1 -try { - Number.prototype.toString(18); - $ERROR('#1: "Number.prototype.toString(18);" lead to throwing exception. Actual: '+Number.prototype.toString(18)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(18)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(18) !== "0"){ + $ERROR('#1: Number.prototype.toString(18) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js index d753f5a190..90773b31e5 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js @@ -10,13 +10,8 @@ description: radix is 19 ---*/ //CHECK#1 -try { - Number.prototype.toString(19); - $ERROR('#1: "Number.prototype.toString(19);" lead to throwing exception. Actual: '+Number.prototype.toString(19)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(19)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(19) !== "0"){ + $ERROR('#1: Number.prototype.toString(19) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js index 60986a200b..e521f4e04e 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js @@ -10,13 +10,8 @@ description: radix is 20 ---*/ //CHECK#1 -try { - Number.prototype.toString(20); - $ERROR('#1: "Number.prototype.toString(20);" lead to throwing exception. Actual: '+Number.prototype.toString(20)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(20)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(20) !== "0"){ + $ERROR('#1: Number.prototype.toString(20) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js index b9ee0add68..85265d53b0 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js @@ -10,13 +10,8 @@ description: radix is 21 ---*/ //CHECK#1 -try { - Number.prototype.toString(21); - $ERROR('#1: "Number.prototype.toString(21);" lead to throwing exception. Actual: '+Number.prototype.toString(21)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(21)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(21) !== "0"){ + $ERROR('#1: Number.prototype.toString(21) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js index d2a9f20e9a..038e832ce0 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js @@ -10,13 +10,8 @@ description: radix is 22 ---*/ //CHECK#1 -try { - Number.prototype.toString(22); - $ERROR('#1: "Number.prototype.toString(22);" lead to throwing exception. Actual: '+Number.prototype.toString(22)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(22)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(22) !== "0"){ + $ERROR('#1: Number.prototype.toString(22) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js index 073cac8037..e82878b19c 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js @@ -10,13 +10,8 @@ description: radix is 23 ---*/ //CHECK#1 -try { - Number.prototype.toString(23); - $ERROR('#1: "Number.prototype.toString(23);" lead to throwing exception. Actual: '+Number.prototype.toString(23)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(23)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(23) !== "0"){ + $ERROR('#1: Number.prototype.toString(23) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js index 0945621b6a..ead76b2fe2 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js @@ -10,13 +10,8 @@ description: radix is 24 ---*/ //CHECK#1 -try { - Number.prototype.toString(24); - $ERROR('#1: "Number.prototype.toString(24);" lead to throwing exception. Actual: '+Number.prototype.toString(24)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(24)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(24) !== "0"){ + $ERROR('#1: Number.prototype.toString(24) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js index c1aeb1dc44..d8f277e50c 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js @@ -10,13 +10,8 @@ description: radix is 25 ---*/ //CHECK#1 -try { - Number.prototype.toString(25); - $ERROR('#1: "Number.prototype.toString(25);" lead to throwing exception. Actual: '+Number.prototype.toString(25)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(25)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(25) !== "0"){ + $ERROR('#1: Number.prototype.toString(25) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js index f207208308..8bac6eff94 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js @@ -10,13 +10,8 @@ description: radix is 26 ---*/ //CHECK#1 -try { - Number.prototype.toString(26); - $ERROR('#1: "Number.prototype.toString(26);" lead to throwing exception. Actual: '+Number.prototype.toString(26)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(26)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(26) !== "0"){ + $ERROR('#1: Number.prototype.toString(26) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js index 2ae9078dfe..3bdff1ea9c 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js @@ -10,13 +10,8 @@ description: radix is 27 ---*/ //CHECK#1 -try { - Number.prototype.toString(27); - $ERROR('#1: "Number.prototype.toString(27);" lead to throwing exception. Actual: '+Number.prototype.toString(27)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(27)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(27) !== "0"){ + $ERROR('#1: Number.prototype.toString(27) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js index 098c21efbe..3f918a3460 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js @@ -10,13 +10,8 @@ description: radix is 28 ---*/ //CHECK#1 -try { - Number.prototype.toString(28); - $ERROR('#1: "Number.prototype.toString(28);" lead to throwing exception. Actual: '+Number.prototype.toString(28)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(28)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(28) !== "0"){ + $ERROR('#1: Number.prototype.toString(28) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js index f2c8c5ea71..46181050a3 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js @@ -10,13 +10,8 @@ description: radix is 29 ---*/ //CHECK#1 -try { - Number.prototype.toString(29); - $ERROR('#1: "Number.prototype.toString(29);" lead to throwing exception. Actual: '+Number.prototype.toString(29)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(29)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(29) !== "0"){ + $ERROR('#1: Number.prototype.toString(29) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js index 9b4ce91877..20cbfbf0a7 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js @@ -10,13 +10,8 @@ description: radix is 30 ---*/ //CHECK#1 -try { - Number.prototype.toString(30); - $ERROR('#1: "Number.prototype.toString(30);" lead to throwing exception. Actual: '+Number.prototype.toString(30)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(30)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(30) !== "0"){ + $ERROR('#1: Number.prototype.toString(30) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js index 86d0bf0cac..27ba3de869 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js @@ -10,13 +10,8 @@ description: radix is 31 ---*/ //CHECK#1 -try { - Number.prototype.toString(31); - $ERROR('#1: "Number.prototype.toString(31);" lead to throwing exception. Actual: '+Number.prototype.toString(31)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(31)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(31) !== "0"){ + $ERROR('#1: Number.prototype.toString(31) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js index c7f4852b86..1cf762a35c 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js @@ -10,13 +10,8 @@ description: radix is 32 ---*/ //CHECK#1 -try { - Number.prototype.toString(32); - $ERROR('#1: "Number.prototype.toString(32);" lead to throwing exception. Actual: '+Number.prototype.toString(32)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(32)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(32) !== "0"){ + $ERROR('#1: Number.prototype.toString(32) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js index fd4bdd2075..d3b4a0f291 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js @@ -10,13 +10,8 @@ description: radix is 33 ---*/ //CHECK#1 -try { - Number.prototype.toString(33); - $ERROR('#1: "Number.prototype.toString(33);" lead to throwing exception. Actual: '+Number.prototype.toString(33)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(33)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(33) !== "0"){ + $ERROR('#1: Number.prototype.toString(33) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js index 104ee3bb15..bab5115d3a 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js @@ -10,13 +10,8 @@ description: radix is 34 ---*/ //CHECK#1 -try { - Number.prototype.toString(34); - $ERROR('#1: "Number.prototype.toString(34);" lead to throwing exception. Actual: '+Number.prototype.toString(34)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(34)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(34) !== "0"){ + $ERROR('#1: Number.prototype.toString(34) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js index 397f730a46..7433850375 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js @@ -10,13 +10,8 @@ description: radix is 35 ---*/ //CHECK#1 -try { - Number.prototype.toString(35); - $ERROR('#1: "Number.prototype.toString(35);" lead to throwing exception. Actual: '+Number.prototype.toString(35)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(35)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(35) !== "0"){ + $ERROR('#1: Number.prototype.toString(35) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js index 11bcfca072..aa1cdebbe7 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js @@ -10,13 +10,8 @@ description: radix is 36 ---*/ //CHECK#1 -try { - Number.prototype.toString(36); - $ERROR('#1: "Number.prototype.toString(36);" lead to throwing exception. Actual: '+Number.prototype.toString(36)); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.toString(36)" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.toString(36) !== "0"){ + $ERROR('#1: Number.prototype.toString(36) === "0"'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js index fdaa9ca7ba..e6fc4d41de 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js @@ -8,13 +8,8 @@ description: Call without argument ---*/ //CHECK#1 -try { - Number.prototype.valueOf(); - $ERROR('#1: "Number.prototype.valueOf();" lead to throwing exception. Actual: '+Number.prototype.valueOf()); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.valueOf()" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.valueOf() !== 0){ + $ERROR('#1: Number.prototype.valueOf() === 0'); } //CHECK#2 diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js index 6205a04cee..ce82e1f0c9 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js @@ -8,13 +8,8 @@ description: calling with argument ---*/ //CHECK#1 -try { - Number.prototype.valueOf("argument"); - $ERROR('#1: "Number.prototype.valueOf("argument");" lead to throwing exception. Actual: '+Number.prototype.valueOf("argument")); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "Number.prototype.valueOf("argument")" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if(Number.prototype.valueOf("argument") !== 0){ + $ERROR('#1: Number.prototype.valueOf("argument") === 0'); } //CHECK#2 diff --git a/test/built-ins/String/prototype/S15.5.4_A1.js b/test/built-ins/String/prototype/S15.5.4_A1.js index 1b69a4ebd7..1da710bc47 100644 --- a/test/built-ins/String/prototype/S15.5.4_A1.js +++ b/test/built-ins/String/prototype/S15.5.4_A1.js @@ -3,8 +3,7 @@ /*--- info: > - The String prototype object is itself not a String object (its [[Class]] - is "Object") + The String prototype object is itself a String object (its [[Class]] is "String") es5id: 15.5.4_A1 description: > first we delete String.prototype.toString cause it overrides @@ -16,8 +15,8 @@ delete String.prototype.toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String.prototype.toString() !== "[object "+"Object"+"]") { - $ERROR('#1: delete String.prototype.toString; String.prototype.toString() === "[object "+"Object"+"]". Actual: String.prototype.toString() ==='+String.prototype.toString() ); +if (String.prototype.toString() !== "[object "+"String"+"]") { + $ERROR('#1: delete String.prototype.toString; String.prototype.toString() === "[object "+"String"+"]". Actual: String.prototype.toString() ==='+String.prototype.toString() ); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.4_A2.js b/test/built-ins/String/prototype/S15.5.4_A2.js index 30c15bfcb3..227ed079c3 100644 --- a/test/built-ins/String/prototype/S15.5.4_A2.js +++ b/test/built-ins/String/prototype/S15.5.4_A2.js @@ -2,21 +2,15 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -info: The String prototype object is itself not a String object +info: The String prototype object is itself a String object whose value is an empty string es5id: 15.5.4_A2 description: Checking String.prototype ---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -try { - (String.prototype !=""); - $ERROR('#1: "(String.prototype !="");" lead to throwing exception. Actual: '+(String.prototype !="")); -} catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1.1: "(String.prototype !="")" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); - } +if (String.prototype !="") { + $ERROR('#1: String.prototype =="". Actual: String.prototype =='+String.prototype ); } - // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.4_A3.js b/test/built-ins/String/prototype/S15.5.4_A3.js index 433ce049b2..837d2190c7 100644 --- a/test/built-ins/String/prototype/S15.5.4_A3.js +++ b/test/built-ins/String/prototype/S15.5.4_A3.js @@ -21,8 +21,8 @@ delete String.prototype.toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (String.prototype.toString() != "[object "+"Object"+"]") { - $ERROR('#2: delete String.prototype.toString; String.prototype.toString() == "[object "+"Object"+"]". Actual: String.prototype.toString() =='+String.prototype.toString() ); +if (String.prototype.toString() != "[object "+"String"+"]") { + $ERROR('#2: delete String.prototype.toString; String.prototype.toString() == "[object "+"String"+"]". Actual: String.prototype.toString() =='+String.prototype.toString() ); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js index 85a4bf128e..8983b061a5 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js @@ -17,7 +17,7 @@ Number.prototype.split = String.prototype.split; var __split = __instance.split(1, -Math.pow(2,32)+1); -var __expected = []; +var __expected = [""]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 diff --git a/test/language/expressions/property-accessors/S11.2.1_A4_T5.js b/test/language/expressions/property-accessors/S11.2.1_A4_T5.js index cc9cd5cdd7..3038847735 100644 --- a/test/language/expressions/property-accessors/S11.2.1_A4_T5.js +++ b/test/language/expressions/property-accessors/S11.2.1_A4_T5.js @@ -34,5 +34,5 @@ if (typeof String.prototype.toLowerCase !== "function") $ERROR('#23: typeof Str if (typeof String.prototype['toLowerCase'] !== "function") $ERROR('#24: typeof String.prototype["toLowerCase"] === "function". Actual: ' + (typeof String.prototype["toLowerCase"] )); if (typeof String.prototype.toUpperCase !== "function") $ERROR('#25: typeof String.prototype.toUpperCase === "function". Actual: ' + (typeof String.prototype.toUpperCase )); if (typeof String.prototype['toUpperCase'] !== "function") $ERROR('#26: typeof Array.prototype === "object". Actual: ' + (typeof Array.prototype )); -if (typeof String.prototype.length !== "undefined") $ERROR('#27: typeof String.prototype.length === "undefined". Actual: ' + (typeof String.prototype.length )); -if (typeof String.prototype['length'] !== "undefined") $ERROR('#28: typeof String.prototype["length"] === "undefined". Actual: ' + (typeof String.prototype["length"] )); +if (typeof String.prototype.length !== "number") $ERROR('#27: typeof String.prototype.length === "number". Actual: ' + (typeof String.prototype.length )); +if (typeof String.prototype['length'] !== "number") $ERROR('#28: typeof String.prototype["length"] === "number". Actual: ' + (typeof String.prototype["length"] )); diff --git a/test/language/statements/for/S12.6.3_A9.1.js b/test/language/statements/for/S12.6.3_A9.1.js index faa2e8e23d..af8c01b0a5 100644 --- a/test/language/statements/for/S12.6.3_A9.1.js +++ b/test/language/statements/for/S12.6.3_A9.1.js @@ -16,7 +16,7 @@ supreme=5; //CHECK# try { var __evaluated = eval("for(count=0;;) {if (count===supreme)break;else count++; }"); - if (__evaluated !== 4) { + if (__evaluated !== void 0) { $ERROR('#1: __evaluated === 4. Actual: __evaluated ==='+ __evaluated ); } } catch (e) { diff --git a/test/language/statements/for/S12.6.3_A9.js b/test/language/statements/for/S12.6.3_A9.js index eb14e6ca0d..5de81d4ffe 100644 --- a/test/language/statements/for/S12.6.3_A9.js +++ b/test/language/statements/for/S12.6.3_A9.js @@ -16,7 +16,7 @@ supreme=5; //CHECK# try { var __evaluated = eval("for(var count=0;;) {if (count===supreme)break;else count++; }"); - if (__evaluated !== 4) { + if (__evaluated !== void 0) { $ERROR('#1: __evaluated === 4. Actual: __evaluated ==='+ __evaluated ); } } catch (e) {