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:
David Fugate 2011-03-11 17:42:53 -08:00
parent 0edb82f716
commit feccaa7ac4
50 changed files with 102 additions and 93 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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\"",

View File

@ -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",

View File

@ -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",

View File

@ -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]",

View File

@ -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",

View File

@ -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",

View File

@ -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]",

View File

@ -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",

View File

@ -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]",

View File

@ -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",

View File

@ -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)\"",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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\"",

View File

@ -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]\"",

View File

@ -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]\"",

View File

@ -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.",

View File

@ -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.",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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\"}\"",

View File

@ -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\"}\"",

View File

@ -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