From 57c450002dc284c080aaae61839323c72440e65e Mon Sep 17 00:00:00 2001 From: Mark Miller Date: Wed, 7 Sep 2011 08:52:29 -0700 Subject: [PATCH] Removed an invalid "var". --- .../15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A12.js | 2 +- .../15.3.4.5_Function.prototype.bind/S15.3.4.5_A1.js | 2 +- .../S15.4.4.12_A2.1_T5.js | 11 +++++------ .../S15.5.4.8_A1_T1.js | 2 +- .../S15.5.4.8_A1_T1.js | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/test/suite/sputnik/Conformance/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A12.js b/test/suite/sputnik/Conformance/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A12.js index 111aedb391..c54a9eeca9 100644 --- a/test/suite/sputnik/Conformance/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A12.js +++ b/test/suite/sputnik/Conformance/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A12.js @@ -5,7 +5,7 @@ * @name: S15.10.6.2_A12; * @section: 15.10.6.2; * @assertion: regExp exec() acts like regExp.exec('undefined') (step 2); -* @description: Checking RegExp.prototype.exec.length; +* @description: Checking RegExp.prototype.exec */ (/foo/).test('xfoox'); diff --git a/test/suite/sputnik/Conformance/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.5_Function.prototype.bind/S15.3.4.5_A1.js b/test/suite/sputnik/Conformance/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.5_Function.prototype.bind/S15.3.4.5_A1.js index a92c931b30..51279d131f 100644 --- a/test/suite/sputnik/Conformance/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.5_Function.prototype.bind/S15.3.4.5_A1.js +++ b/test/suite/sputnik/Conformance/15_Native/15.3_Function_Objects/15.3.4_Properties_of_the_Function_Prototype_Object/15.3.4.5_Function.prototype.bind/S15.3.4.5_A1.js @@ -5,7 +5,7 @@ * @name: S15.3.4.5_A1; * @section: 15.3.4.5; * @assertion: "caller" of bound function is poisoned (step 20); -* @description A bound function should fail to find its "caller"; +* @description: A bound function should fail to find its "caller"; * @negative * @errortype: TypeError; */ diff --git a/test/suite/sputnik/Conformance/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/15.4.4.12_Array_prototype_splice/S15.4.4.12_A2.1_T5.js b/test/suite/sputnik/Conformance/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/15.4.4.12_Array_prototype_splice/S15.4.4.12_A2.1_T5.js index 3ee2cb7a49..2c8a43e18e 100644 --- a/test/suite/sputnik/Conformance/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/15.4.4.12_Array_prototype_splice/S15.4.4.12_A2.1_T5.js +++ b/test/suite/sputnik/Conformance/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/15.4.4.12_Array_prototype_splice/S15.4.4.12_A2.1_T5.js @@ -6,7 +6,6 @@ * @section: 15.4.4.12; * @assertion: Operator use ToInteger from start; * @description: ToInteger use ToNumber; - * @description: ToInteger use ToNumber; */ var x = [0,1,2,3]; @@ -21,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") { //CHECK#2 if (arr.length !== 3) { $ERROR('#2: var x = [0,1,2,3]; var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3); arr.length === 3. Actual: ' + (arr.length)); -} +} //CHECK#3 if (arr[0] !== 0) { @@ -31,19 +30,19 @@ if (arr[0] !== 0) { //CHECK#4 if (arr[1] !== 1) { $ERROR('#4: var x = [0,1,2,3]; var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3); arr[1] === 1. Actual: ' + (arr[1])); -} +} //CHECK#5 if (arr[2] !== 2) { $ERROR('#5: var x = [0,1,2,3]; var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3); arr[2] === 2. Actual: ' + (arr[2])); -} +} //CHECK#6 if (x.length !== 1) { $ERROR('#6: var x = [0,1,2,3]; var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3); x.length === 1. Actual: ' + (x.length)); -} +} //CHECK#7 if (x[0] !== 3) { $ERROR('#7: var x = [0,1,2,3]; var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3); x[0] === 3. Actual: ' + (x[0])); -} +} diff --git a/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.8_String.prototype.lastIndexOf/S15.5.4.8_A1_T1.js b/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.8_String.prototype.lastIndexOf/S15.5.4.8_A1_T1.js index 36b70ebd28..52c69295e2 100644 --- a/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.8_String.prototype.lastIndexOf/S15.5.4.8_A1_T1.js +++ b/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.8_String.prototype.lastIndexOf/S15.5.4.8_A1_T1.js @@ -10,7 +10,7 @@ var __instance = new Object(true); -var __instance.lastIndexOf = String.prototype.lastIndexOf; +__instance.lastIndexOf = String.prototype.lastIndexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 diff --git a/test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.8_String.prototype.lastIndexOf/S15.5.4.8_A1_T1.js b/test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.8_String.prototype.lastIndexOf/S15.5.4.8_A1_T1.js index 2838987400..824e277aca 100644 --- a/test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.8_String.prototype.lastIndexOf/S15.5.4.8_A1_T1.js +++ b/test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.8_String.prototype.lastIndexOf/S15.5.4.8_A1_T1.js @@ -23,7 +23,7 @@ description: "Arguments are false and true, and instance is object", test: function testcase() { var __instance = new Object(true); -var __instance.lastIndexOf = String.prototype.lastIndexOf; + __instance.lastIndexOf = String.prototype.lastIndexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1