diff --git a/test/config/excludelist.xml b/test/config/excludelist.xml index 2946a7c4cecdd4ccd9f40c7480706af49b1fe1e0..13c89c474cee3877fdf3f14c0626686d248c4477 100644 --- a/test/config/excludelist.xml +++ b/test/config/excludelist.xml @@ -104,33 +104,6 @@ <test id="S11.8.2_A2.3_T1">https://bugs.ecmascript.org/show_bug.cgi?id=15</test> <test id="S11.8.3_A2.3_T1">https://bugs.ecmascript.org/show_bug.cgi?id=15</test> - <!-- FunctionDeclaration inside a Statement context--> - <test id="S12.10_A3.3_T5">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S12.7_A3">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S12.7_A4_T1">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S12.7_A4_T2">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S12.7_A4_T3">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S12.8_A3">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S12.8_A4_T1">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S12.8_A4_T2">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S12.8_A4_T3">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S13.2.2_A17_T1">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S13.2.2_D20_T2">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S13.2.2_D20_T3">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S13.2.2_D20_T4">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S13.2.2_D20_T5">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S13.2.2_D20_T6">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S13.2.2_D20_T7">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S13.2.2_D20_T8">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S13_D1_T1">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S14_D1_T1">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S14_D4_T1">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S14_D4_T2">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S14_D4_T3">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S14_D6_T1">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S14_D6_T2">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <test id="S14_D7">https://bugs.ecmascript.org/show_bug.cgi?id=18</test> - <!-- Still invalid after a fix from Google. ES5 doesn't state Chapter 16 extensions regarding FunctionDeclaration are invalid per-se --> <test id="S12.1_A1">https://bugs.ecmascript.org/show_bug.cgi?id=80</test> @@ -154,22 +127,8 @@ <test id="S12.6.4_A14_T1">https://bugs.ecmascript.org/show_bug.cgi?id=25</test> - <test id="S15.1.1.1_A2_T1">https://bugs.ecmascript.org/show_bug.cgi?id=27</test> - <test id="S15.1.1.2_A2_T1">https://bugs.ecmascript.org/show_bug.cgi?id=27</test> - <test id="S15.1.1.1_A2_T2">https://bugs.ecmascript.org/show_bug.cgi?id=27</test> - <test id="S15.1.1.3_A2_T1">https://bugs.ecmascript.org/show_bug.cgi?id=27</test> - <test id="S15.1.1.3_A2_T2">https://bugs.ecmascript.org/show_bug.cgi?id=27</test> - - <test id="S15.3.4.3_A6_T1">https://bugs.ecmascript.org/show_bug.cgi?id=28</test> - <test id="S15.3.4.3_A6_T4">https://bugs.ecmascript.org/show_bug.cgi?id=28</test> - - <test id="S15.4.4.2_A2_T1">https://bugs.ecmascript.org/show_bug.cgi?id=29</test> - <test id="S15.4.4.3_A2_T1">https://bugs.ecmascript.org/show_bug.cgi?id=29</test> - <test id="S15.5.4.8_A1_T11">https://bugs.ecmascript.org/show_bug.cgi?id=30</test> - <test id="S15.3.4.2_A1_T1">https://bugs.ecmascript.org/show_bug.cgi?id=31</test> - <test id="S7.8.4_A6.4_T1">https://bugs.ecmascript.org/show_bug.cgi?id=58</test> <test id="S7.8.4_A6.4_T2">https://bugs.ecmascript.org/show_bug.cgi?id=58</test> <test id="S7.8.4_A7.4_T1">https://bugs.ecmascript.org/show_bug.cgi?id=58</test> @@ -184,16 +143,6 @@ <test id="15.4.4.4-5-c-i-1">https://bugs.ecmascript.org/show_bug.cgi?id=69</test> - <test id="S15.5.4.11_A1_T3">https://bugs.ecmascript.org/show_bug.cgi?id=117</test> - <test id="S15.5.4.12_A1_T3">https://bugs.ecmascript.org/show_bug.cgi?id=117</test> - <test id="S15.5.4.13_A1_T3">https://bugs.ecmascript.org/show_bug.cgi?id=117</test> - <test id="S15.5.4.15_A1_T3">https://bugs.ecmascript.org/show_bug.cgi?id=117</test> - <test id="S15.5.4.7_A1_T3">https://bugs.ecmascript.org/show_bug.cgi?id=117</test> - <test id="S15.5.4.8_A1_T3">https://bugs.ecmascript.org/show_bug.cgi?id=117</test> - <test id="S15.5.4.4_A1_T3">https://bugs.ecmascript.org/show_bug.cgi?id=117</test> - <test id="S15.5.4.5_A1_T3">https://bugs.ecmascript.org/show_bug.cgi?id=117</test> - <test id="S15.5.4.6_A1_T3">https://bugs.ecmascript.org/show_bug.cgi?id=117</test> - <!-- Extension clause --> <test id="S15.10.2.11_A1_T2">https://bugs.ecmascript.org/show_bug.cgi?id=120</test> <test id="S15.10.2.11_A1_T3">https://bugs.ecmascript.org/show_bug.cgi?id=120</test> 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.11_String.prototype.replace/S15.5.4.11_A1_T3.js b/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.11_String.prototype.replace/S15.5.4.11_A1_T3.js deleted file mode 100644 index bcef568b330162280e00fcb6bfd1d0515c0f66da..0000000000000000000000000000000000000000 --- a/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.11_String.prototype.replace/S15.5.4.11_A1_T3.js +++ /dev/null @@ -1,38 +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.5.4.11_A1_T3; -* @section: 15.5.4.11; -* @assertion: String.prototype.replace (searchValue, replaceValue); -* @description: Checking by using eval; -*/ - -replace = String.prototype.replace; - -if (typeof toString === "undefined"){ - toString = Object.prototype.toString; -} - -__class__ = toString(); -__toggle = 1; - -////////////////////////////////////////////////////////////////////////////// -//CHECK#1 -__replaced = replace(eval("\"b\""),"^"); - -__golden = ""; -for(var i=0; i<__class__.length; i++) { - if ((__class__.charAt(i)==="b")&&(__toggle)) { - __golden+="^"; - __toggle = 0; - } else { - __golden+=__class__.charAt(i); - } - -} -if (__replaced !==__golden) { - $ERROR('#1: __replaced ===__golden. Actual: '+__replaced ); -} -// -////////////////////////////////////////////////////////////////////////////// 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.12_String.prototype.search/S15.5.4.12_A1_T3.js b/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.12_String.prototype.search/S15.5.4.12_A1_T3.js deleted file mode 100644 index a27b22d3fede0bfa5241710965bfee0b80059d11..0000000000000000000000000000000000000000 --- a/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.12_String.prototype.search/S15.5.4.12_A1_T3.js +++ /dev/null @@ -1,25 +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.5.4.12_A1_T3; -* @section: 15.5.4.12; -* @assertion: String.prototype.search (regexp); -* @description: Checking by using eval; -*/ - -var search = String.prototype.search; - -if (typeof toString === "undefined"){ - var toString = Object.prototype.toString; -} - -var __class__ = toString(); - -////////////////////////////////////////////////////////////////////////////// -//CHECK#1 -if (search(eval("\"bj\"")) !== 2) { - $ERROR('#1: search = String.prototype.search; search(eval("\\"bj\\"")) === 2. Actual: '+search(eval("\"bj\"")) ); -} -// -////////////////////////////////////////////////////////////////////////////// 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.13_String.prototype.slice/S15.5.4.13_A1_T3.js b/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.13_String.prototype.slice/S15.5.4.13_A1_T3.js deleted file mode 100644 index a7e3b069c5c491863e68b4b002d648b0b9d601a7..0000000000000000000000000000000000000000 --- a/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.13_String.prototype.slice/S15.5.4.13_A1_T3.js +++ /dev/null @@ -1,26 +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.5.4.13_A1_T3; -* @section: 15.5.4.13; -* @assertion: String.prototype.slice (start, end); -* @description: Checking by using eval; -*/ - -var slice = String.prototype.slice; - -if (typeof toString === "undefined"){ - toString = Object.prototype.toString; -} - -var __class__ = toString(); -var __toggle = 1; - -////////////////////////////////////////////////////////////////////////////// -//CHECK#1 -if (slice(eval("\"1\""),{valueOf:function(){return "0x0007"}})!=="object") { - $ERROR('#1: slice = String.prototype.slice; slice(eval("\\"1\\""),{valueOf:function(){return "0x0007"}})==="object". Actual: '+slice(eval("\"1\""),{valueOf:function(){return "0x0007"}})); -}; -// -////////////////////////////////////////////////////////////////////////////// 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.15_String.prototype.substring/S15.5.4.15_A1_T3.js b/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.15_String.prototype.substring/S15.5.4.15_A1_T3.js deleted file mode 100644 index b20f836ff5689883104ebb6a8abfcda4a39a50da..0000000000000000000000000000000000000000 --- a/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.15_String.prototype.substring/S15.5.4.15_A1_T3.js +++ /dev/null @@ -1,26 +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.5.4.15_A1_T3; -* @section: 15.5.4.15; -* @assertion: String.prototype.substring (start, end); -* @description: Checking by using eval; -*/ - -var substring = String.prototype.substring; - -if (typeof toString === "undefined"){ - toString = Object.prototype.toString; -} - -var __class__ = toString(); -var __toggle = 1; - -////////////////////////////////////////////////////////////////////////////// -//CHECK#1 -if (substring(eval("\"1\""),{valueOf:function(){return "0x0007"}})!=="object") { - $ERROR('#1: substring(eval("\\"1\\""),{valueOf:function(){return "0x0007"}})==="object". Actual: '+substring(eval("\"1\""),{valueOf:function(){return "0x0007"}})); -}; -// -////////////////////////////////////////////////////////////////////////////// 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.4_String.prototype.charAt/S15.5.4.4_A1_T3.js b/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.4_String.prototype.charAt/S15.5.4.4_A1_T3.js deleted file mode 100644 index 5fb9bab48043282a967012626e9b247a4dd99070..0000000000000000000000000000000000000000 --- a/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.4_String.prototype.charAt/S15.5.4.4_A1_T3.js +++ /dev/null @@ -1,25 +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.5.4.4_A1_T3; -* @section: 15.5.4.4; -* @assertion: String.prototype.charAt(pos); -* @description: Use numbers and strings as pos; -*/ - -var charAt = String.prototype.charAt; - -if (typeof toString === "undefined"){ - var toString = Object.prototype.toString; -} - -var __class__ = toString(); - -////////////////////////////////////////////////////////////////////////////// -//CHECK#1 -if (charAt("1") + charAt(2) + charAt("3") + charAt(4) + charAt("5") + charAt(6) !== "object") { - $ERROR('#1: charAt = String.prototype.charAt; charAt("1") + charAt(2) + charAt("3") + charAt(4) + charAt("5") + charAt(6) === "object". Actual: '+charAt("1") + charAt(2) + charAt("3") + charAt(4) + charAt("5") + charAt(6) ); -} -// -////////////////////////////////////////////////////////////////////////////// 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.5_String.prototype.charCodeAt/S15.5.4.5_A1_T3.js b/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.5_String.prototype.charCodeAt/S15.5.4.5_A1_T3.js deleted file mode 100644 index e1ae18abe14e616328d8385404422203613ecaf2..0000000000000000000000000000000000000000 --- a/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.5_String.prototype.charCodeAt/S15.5.4.5_A1_T3.js +++ /dev/null @@ -1,58 +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.5.4.5_A1_T3; -* @section: 15.5.4.5; -* @assertion: String.prototype.charCodeAt(pos); -* @description: Use numbers and strings as pos; -*/ - -var charCodeAt = String.prototype.charCodeAt; - -if (typeof toString === "undefined"){ - var toString = Object.prototype.toString; -} - -var __class__ = toString(); - -////////////////////////////////////////////////////////////////////////////// -//CHECK#1 -if (charCodeAt("2") !== 0x62) { - $ERROR('#1: charCodeAt = String.prototype.charCodeAt; charCodeAt("2") === 0x62. Actual: '+charCodeAt("2") ); -} -// -////////////////////////////////////////////////////////////////////////////// - -////////////////////////////////////////////////////////////////////////////// -//CHECK#2 -if (charCodeAt(3) !== 0x6A) { - $ERROR('#2: charCodeAt = String.prototype.charCodeAt; charCodeAt(3) === 0x6A. Actual: '+charCodeAt(3) ); -} -// -////////////////////////////////////////////////////////////////////////////// - -////////////////////////////////////////////////////////////////////////////// -//CHECK#3 -if (charCodeAt("4") !== 0x65) { - $ERROR('#3: charCodeAt = String.prototype.charCodeAt; charCodeAt("4") === 0x65. Actual: '+charCodeAt("4") ); -} -// -////////////////////////////////////////////////////////////////////////////// - -////////////////////////////////////////////////////////////////////////////// -//CHECK#4 -if (charCodeAt(5) !== 0x63) { - $ERROR('#4: charCodeAt = String.prototype.charCodeAt; charCodeAt(5) === 0x63. Actual: '+charCodeAt(5) ); -} -// -////////////////////////////////////////////////////////////////////////////// - -////////////////////////////////////////////////////////////////////////////// -//CHECK#5 -if (charCodeAt("6") !== 0x74) { - $ERROR('#5: charCodeAt = String.prototype.charCodeAt; charCodeAt("6") === 0x74. Actual: '+charCodeAt("6") ); -} -// -////////////////////////////////////////////////////////////////////////////// - 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.6_String.prototype.concat/S15.5.4.6_A1_T3.js b/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.6_String.prototype.concat/S15.5.4.6_A1_T3.js deleted file mode 100644 index 9ee53c78f6892deb7e53a1e4885d5bd1ed5d9fb2..0000000000000000000000000000000000000000 --- a/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.6_String.prototype.concat/S15.5.4.6_A1_T3.js +++ /dev/null @@ -1,27 +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.5.4.6_A1_T3; -* @section: 15.5.4.6; -* @assertion: String.prototype.concat([,[...]]); -* @description: Use numbers and function object as arguments; -*/ - -var concat = String.prototype.concat; - -var __obj5 = {toString:function(){return 5;}}; - -if (typeof toString === "undefined"){ - var toString = Object.prototype.toString; -} - -var __class__ = toString(); - -////////////////////////////////////////////////////////////////////////////// -//CHECK#1 -if (concat(1,2,3,4,__obj5)!=__class__+"12345") { - $ERROR('#1: concat = String.prototype.concat; concat(1,2,3,4,__obj5)==__class__+"12345". Actual: concat(1,2,3,4,__obj5)=='+concat(1,2,3,4,__obj5)); -} -// -////////////////////////////////////////////////////////////////////////////// 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.7_String.prototype.indexOf/S15.5.4.7_A1_T3.js b/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.7_String.prototype.indexOf/S15.5.4.7_A1_T3.js deleted file mode 100644 index 70ad52b9058234b7dc24b5746d5f97b325ccbb7e..0000000000000000000000000000000000000000 --- a/test/suite/sputnik/Conformance/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.7_String.prototype.indexOf/S15.5.4.7_A1_T3.js +++ /dev/null @@ -1,27 +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.5.4.7_A1_T3; -* @section: 15.5.4.7; -* @assertion: String.prototype.indexOf(searchString, position); -* @description: Checking by using eval; -*/ - -var indexOf = String.prototype.indexOf; - -var __obj__pos = {valueOf:function(){return 5;}}; - -if (typeof toString === "undefined"){ - toString = Object.prototype.toString; -} - -var __class__ = toString(); - -////////////////////////////////////////////////////////////////////////////// -//CHECK#1 -if (indexOf(eval("\"[\""),__obj__pos)!=-1) { - $ERROR('#1: indexOf = String.prototype.indexOf; indexOf(eval("\\"[\\""),__obj__pos)==-1. Actual: indexOf(eval("\\"[\\""),__obj__pos)=='+indexOf(eval("\"[\""),__obj__pos)); -} -// -////////////////////////////////////////////////////////////////////////////// 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_T3.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_T3.js deleted file mode 100644 index a81622ed55e5b9bd6f969046fea46ce7f3f8ea1e..0000000000000000000000000000000000000000 --- 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_T3.js +++ /dev/null @@ -1,27 +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.5.4.8_A1_T3; -* @section: 15.5.4.8; -* @assertion: String.prototype.lastIndexOf(searchString, position); -* @description: Checking by using eval; -*/ - -var lastIndexOf = String.prototype.lastIndexOf; - -var __obj__pos = {valueOf:function(){return 7;}}; - -if (typeof toString === "undefined"){ - var toString = Object.prototype.toString; -} - -var __class__ = toString(); - -////////////////////////////////////////////////////////////////////////////// -//CHECK#1 -if (lastIndexOf(eval("\"[\""),__obj__pos)!= 0) { - $ERROR('#1: lastIndexOf(eval("\\"[\\""),__obj__pos)== 0. Actual: '+lastIndexOf(eval("\"[\""),__obj__pos)); -} -// -//////////////////////////////////////////////////////////////////////////////