mirror of https://github.com/tc39/test262.git
Fixes https://bugs.ecmascript.org/show_bug.cgi?id=117 Also removed
from excludes.xml tests that were fixed and removed either by this commit or by earlier commits today
This commit is contained in:
parent
db75ad6977
commit
46ae3ee2ac
|
@ -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>
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
|
@ -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\"")) );
|
||||
}
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
|
@ -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"}}));
|
||||
};
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
|
@ -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"}}));
|
||||
};
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
|
@ -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) );
|
||||
}
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
|
@ -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") );
|
||||
}
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
|
@ -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));
|
||||
}
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
|
@ -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));
|
||||
}
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
|
@ -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));
|
||||
}
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
Loading…
Reference in New Issue