mirror of https://github.com/tc39/test262.git
Added partial support for test cases not in any particular section of an
ES5 chapter. That is, ecma-262-toc.xml now has '.0' sections for all chapters and I've manually modified (Sputnik Ch. 13 & 14) test case id's and paths to utilize the '.0' suffix. Long term, SputnikConverter needs to perform this transformation itself though.
This commit is contained in:
parent
0edb82f716
commit
feccaa7ac4
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A1",
|
||||
id: "S13.0_A1",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Checking the type of y",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A10",
|
||||
id: "S13.0_A10",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Using function as a property of an object",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A11_T1",
|
||||
id: "S13.0_A11_T1",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Returning result of \"delete arguments\"",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A11_T2",
|
||||
id: "S13.0_A11_T2",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Checking if deleting the arguments property fails and then returning it",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A11_T3",
|
||||
id: "S13.0_A11_T3",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Deleting arguments[i] and returning result of the operation",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A11_T4",
|
||||
id: "S13.0_A11_T4",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Deleting arguments[i] and checking the type of arguments[i]",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A12_T1",
|
||||
id: "S13.0_A12_T1",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Checking if deleting a function that is declared in global scope fails",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A12_T2",
|
||||
id: "S13.0_A12_T2",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Checking if deleting a function that is declared in function scope fails",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A13_T1",
|
||||
id: "S13.0_A13_T1",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Deleting arguments[i]",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A13_T2",
|
||||
id: "S13.0_A13_T2",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Changing arguments value and then deleting the argument",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A13_T3",
|
||||
id: "S13.0_A13_T3",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Changing argument value, deleting the argument and then defining a new value for arguments[i]",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A14",
|
||||
id: "S13.0_A14",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Defining function name with unicode symbols",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A15_T1",
|
||||
id: "S13.0_A15_T1",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Declaring a function with \"__func(arguments)\"",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A15_T2",
|
||||
id: "S13.0_A15_T2",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Overriding arguments within functions body",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A15_T3",
|
||||
id: "S13.0_A15_T3",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Declaring a variable named with \"arguments\" without a function",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A15_T4",
|
||||
id: "S13.0_A15_T4",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Declaring a variable named with \"arguments\" and following a \"return\" statement within a function body",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A15_T5",
|
||||
id: "S13.0_A15_T5",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Creating a variable named with \"arguments\" without a function",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A16",
|
||||
id: "S13.0_A16",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Inserting separators between declaration chunks",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A17_T1",
|
||||
id: "S13.0_A17_T1",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Trying to call a function before the FunctionExpression appears",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A17_T2",
|
||||
id: "S13.0_A17_T2",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Trying to call a function before the FunctionExpression appears and then using the FunctionExpression one more time",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A18",
|
||||
id: "S13.0_A18",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Using a function declaration as a function parameter",
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A19_T1",
|
||||
id: "S13.0_A19_T1",
|
||||
|
||||
path: "13,13.2",
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A19_T2",
|
||||
id: "S13.0_A19_T2",
|
||||
|
||||
path: "13,13.2",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A2_T1",
|
||||
id: "S13.0_A2_T1",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Defining function body with \"return arg\"",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A2_T2",
|
||||
id: "S13.0_A2_T2",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Defining function body with \"return arg + arguments[1]\"",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A2_T3",
|
||||
id: "S13.0_A2_T3",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Defining function body with \"return arguments[0] +\"-\"+ arguments[1]\"",
|
||||
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A3_T1",
|
||||
id: "S13.0_A3_T1",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Creating a recursive function that calculates factorial, as a variable.",
|
||||
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A3_T2",
|
||||
id: "S13.0_A3_T2",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Creating a recursive function that calculates factorial, as a variable.",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A3_T3",
|
||||
id: "S13.0_A3_T3",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Creating simple recursive function that calculates factorial",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A4_T1",
|
||||
id: "S13.0_A4_T1",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Declaring a function that returns string",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A4_T2",
|
||||
id: "S13.0_A4_T2",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Declaring a function that uses prefix increment operator within its \"return\" Expression",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A4_T3",
|
||||
id: "S13.0_A4_T3",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Declaring a function that uses arithmetical operators within its \"return\" Expression",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A4_T4",
|
||||
id: "S13.0_A4_T4",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Declaring a function that uses strings concatenaion opeator within its \"return\" Expression",
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A5",
|
||||
id: "S13.0_A5",
|
||||
|
||||
path: "13, 10.1.2",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A6_T1",
|
||||
id: "S13.0_A6_T1",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Duplicating function declaration",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A6_T2",
|
||||
id: "S13.0_A6_T2",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Calling a function before it is declared one more time",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A7_T1",
|
||||
id: "S13.0_A7_T1",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Using only SourceElements within the FunctionBody",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A7_T2",
|
||||
id: "S13.0_A7_T2",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Inserting elements that is different from SourceElements into the FunctionBody",
|
||||
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A7_T3",
|
||||
id: "S13.0_A7_T3",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Checking if execution of \"function __func(){\\A\\B\\C}\" fails",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A8_T1",
|
||||
id: "S13.0_A8_T1",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Creating a function declared with \"function __func(param1, param2, param3)\" and using arguments.length property in order to perform the test",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A8_T2",
|
||||
id: "S13.0_A8_T2",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Creating a function with no parameters and using arguments.length property in order to perform the test",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S13_A9",
|
||||
id: "S13.0_A9",
|
||||
|
||||
path: "13",
|
||||
path: "13.0",
|
||||
|
||||
description: "Using function as argument of another function",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S14_A1",
|
||||
id: "S14.0_A1",
|
||||
|
||||
path: "14",
|
||||
path: "14.0",
|
||||
|
||||
description: "Declaring a function within an \"if\" Expression",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S14_A2",
|
||||
id: "S14.0_A2",
|
||||
|
||||
path: "14",
|
||||
path: "14.0",
|
||||
|
||||
description: "Declaring a function within an \"if\" Expression",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S14_A3",
|
||||
id: "S14.0_A3",
|
||||
|
||||
path: "14",
|
||||
path: "14.0",
|
||||
|
||||
description: "Declaring a function within the body of another function",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S14_A5_T1",
|
||||
id: "S14.0_A5_T1",
|
||||
|
||||
path: "14",
|
||||
path: "14.0",
|
||||
|
||||
description: "Declaring a function with \"function __\\u0066\\u0075\\u006e\\u0063(){return \"both\"}\"",
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// Converted for Test262 from original Sputnik source
|
||||
|
||||
ES5Harness.registerTest( {
|
||||
id: "S14_A5_T2",
|
||||
id: "S14.0_A5_T2",
|
||||
|
||||
path: "14",
|
||||
path: "14.0",
|
||||
|
||||
description: "Declaring a function with \"function \\u005f\\u005f\\u0066\\u0075\\u006e\\u0063(){return \"unicode\"}\"",
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<esSpec name="ECMA-262" version="5">
|
||||
<sec id="7" name="Lexical Conventions">
|
||||
<sec id="7.0" name="Introduction"/>
|
||||
<sec id="7.1" name="Unicode Format-Control Characters"/>
|
||||
<sec id="7.2" name="White Space"/>
|
||||
<sec id="7.3" name="Line Terminators"/>
|
||||
|
@ -23,6 +24,7 @@
|
|||
</sec>
|
||||
</sec>
|
||||
<sec id="8" name="Types">
|
||||
<sec id="8.0" name="Introduction"/>
|
||||
<sec id="8.1" name="The Undefined Type"/>
|
||||
<sec id="8.2" name="The Null Type"/>
|
||||
<sec id="8.3" name="The Boolean Type"/>
|
||||
|
@ -59,6 +61,7 @@
|
|||
</sec>
|
||||
</sec>
|
||||
<sec id="9" name="Type Conversion and Testing">
|
||||
<sec id="9.0" name="Introduction"/>
|
||||
<sec id="9.1" name="ToPrimitive"/>
|
||||
<sec id="9.2" name="ToBoolean"/>
|
||||
<sec id="9.3" name="ToNumber">
|
||||
|
@ -77,6 +80,7 @@
|
|||
<sec id="9.12" name="The SameValue Algorithm"/>
|
||||
</sec>
|
||||
<sec id="10" name="Executable Code and Execution Contexts">
|
||||
<sec id="10.0" name="Introduction"/>
|
||||
<sec id="10.1" name="Types of Executable Code">
|
||||
<sec id="10.1.1" name="Strict Mode Code"/>
|
||||
</sec>
|
||||
|
@ -97,6 +101,7 @@
|
|||
<sec id="10.6" name="Arguments Object"/>
|
||||
</sec>
|
||||
<sec id="11" name="Expressions">
|
||||
<sec id="11.0" name="Introduction"/>
|
||||
<sec id="11.1" name="Primary Expressions">
|
||||
<sec id="11.1.1" name="The this Keyword"/>
|
||||
<sec id="11.1.2" name="Identifier Reference"/>
|
||||
|
@ -169,6 +174,7 @@
|
|||
<sec id="11.14" name="Comma Operator ( , )"/>
|
||||
</sec>
|
||||
<sec id="12" name="Statements">
|
||||
<sec id="12.0" name="Introduction"/>
|
||||
<sec id="12.1" name="Block"/>
|
||||
<sec id="12.2" name="Variable Statement">
|
||||
<sec id="12.2.1" name="Strict Mode Restrictions"/>
|
||||
|
@ -198,6 +204,7 @@
|
|||
</sec>
|
||||
</sec>
|
||||
<sec id="13" name="Function Definition">
|
||||
<sec id="13.0" name="Introduction"/>
|
||||
<sec id="13.1" name="Strict Mode Restrictions"/>
|
||||
<sec id="13.2" name="Creating Function Objects">
|
||||
<sec id="13.2.1" name="[[Call]]"/>
|
||||
|
@ -206,9 +213,11 @@
|
|||
</sec>
|
||||
</sec>
|
||||
<sec id="14" name="Program">
|
||||
<sec id="14.0" name="Introduction"/>
|
||||
<sec id="14.1" name="Directive Prologues and the Use Strict Directive"/>
|
||||
</sec>
|
||||
<sec id="15" name="Standard Built-in ECMAScript Objects">
|
||||
<sec id="15.0" name="Introduction"/>
|
||||
<sec id="15.1" name="The Global Object">
|
||||
<sec id="15.1.1" name="Value Properties of the Global Object"/>
|
||||
<sec id="15.1.2" name="Function Properties of the Global Object"/>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue