Fixed 'assertion' and 'description' metadata formatting issues (WRT SputnikConverter).

This commit is contained in:
David Fugate 2011-06-29 09:18:48 -07:00
parent 47b14845af
commit b8a44856a4
49 changed files with 63 additions and 141 deletions

View File

@ -4,10 +4,8 @@
/**
* @name: S7.5.3_A1.15;
* @section: 7.5.3;
* @assertion: The "implements" token can not be used as identifier in
* strict code;
* @description: Checking if execution of "implements=1" fails in
* strict code;
* @assertion: The "implements" token can not be used as identifier in strict code;
* @description: Checking if execution of "implements=1" fails in strict code;
* @negative
*/

View File

@ -4,10 +4,8 @@
/**
* @name: S7.5.3_A1.15;
* @section: 7.5.3;
* @assertion: The "implements" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "implements=1" succeeds in
* non-strict code;
* @assertion: The "implements" token can be used as identifier in non-strict code;
* @description: Checking if execution of "implements=1" succeeds in non-strict code;
*/
new Function('implements = 1');

View File

@ -4,8 +4,7 @@
/**
* @name: S7.5.3_A1.18;
* @section: 7.5.3;
* @assertion: The "interface" token can not be used as identifier in
* strict code;
* @assertion: The "interface" token can not be used as identifier in strict code;
* @description: Checking if execution of "interface = 1" fails in
* strict code;
* @negative

View File

@ -4,10 +4,8 @@
/**
* @name: S7.5.3_A1.18;
* @section: 7.5.3;
* @assertion: The "interface" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "interface = 1" succeeds in
* strict code;
* @assertion: The "interface" token can be used as identifier in non-strict code;
* @description: Checking if execution of "interface = 1" succeeds in strict code;
*/
new Function('interface = 1');

View File

@ -4,8 +4,7 @@
/**
* @name: S7.5.3_A1.21;
* @section: 7.5.3;
* @assertion: The "package" token can not be used as identifier in
* strict code;
* @assertion: The "package" token can not be used as identifier in strict code;
* @description: Checking if execution of "package=1" fails in strict code;
* @negative
*/

View File

@ -4,10 +4,8 @@
/**
* @name: S7.5.3_A1.21;
* @section: 7.5.3;
* @assertion: The "package" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "package=1" succeeds in
* non-strict code;
* @assertion: The "package" token can be used as identifier in non-strict code;
* @description: Checking if execution of "package=1" succeeds in non-strict code;
*/
new Function('package = 1');

View File

@ -4,8 +4,7 @@
/**
* @name: S7.5.3_A1.22;
* @section: 7.5.3;
* @assertion: The "private" token can not be used as identifier in
* strict code;
* @assertion: The "private" token can not be used as identifier in strict code;
* @description: Checking if execution of "private=1" fails in strict code;
* @negative
*/

View File

@ -4,10 +4,8 @@
/**
* @name: S7.5.3_A1.22;
* @section: 7.5.3;
* @assertion: The "private" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "private=1" succeeds in
* non-strict code;
* @assertion: The "private" token can be used as identifier in non-strict code;
* @description: Checking if execution of "private=1" succeeds in non-strict code;
*/
new Function('private = 1');

View File

@ -4,8 +4,7 @@
/**
* @name: S7.5.3_A1.23;
* @section: 7.5.3;
* @assertion: The "protected" token can not be used as identifier in
* strict code;
* @assertion: The "protected" token can not be used as identifier in strict code;
* @description: Checking if execution of "protected=1" fails in
* strict code;
* @negative

View File

@ -4,10 +4,8 @@
/**
* @name: S7.5.3_A1.23;
* @section: 7.5.3;
* @assertion: The "protected" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "protected=1" succeeds in
* non-strict code;
* @assertion: The "protected" token can be used as identifier in non-strict code;
* @description: Checking if execution of "protected=1" succeeds in non-strict code;
*/
new Function('protected = 1');

View File

@ -4,8 +4,7 @@
/**
* @name: S7.5.3_A1.24;
* @section: 7.5.3;
* @assertion: The "public" token can not be used as identifier in
* strict code;
* @assertion: The "public" token can not be used as identifier in strict code;
* @description: Checking if execution of "public=1" fails in strict code;
* @negative
*/

View File

@ -4,10 +4,8 @@
/**
* @name: S7.5.3_A1.24;
* @section: 7.5.3;
* @assertion: The "public" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "public=1" succeeds in
* non-strict code;
* @assertion: The "public" token can be used as identifier in non-strict code;
* @description: Checking if execution of "public=1" succeeds in non-strict code;
*/
new Function('public = 1');

View File

@ -4,8 +4,7 @@
/**
* @name: S7.5.3_A1.26;
* @section: 7.5.3;
* @assertion: The "static" token can not be used as identifier in
* strict code;
* @assertion: The "static" token can not be used as identifier in strict code;
* @description: Checking if execution of "static=1" fails in strict code;
* @negative
*/

View File

@ -4,10 +4,8 @@
/**
* @name: S7.5.3_A1.26;
* @section: 7.5.3;
* @assertion: The "static" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "static=1" succeeds in
* non-strict code;
* @assertion: The "static" token can be used as identifier in non-strict code;
* @description: Checking if execution of "static=1" succeeds in non-strict code;
*/
new Function('static = 1');

View File

@ -4,10 +4,8 @@
/**
* @name: S12.10_A3.3_T4;
* @section: 12.10;
* @assertion: No matter how control leaves the embedded 'Statement',
* the scope chain is always restored to its former state;
* @description: Declaring "with" statement within a function
* constructor, leading to completion by exception;
* @assertion: No matter how control leaves the embedded 'Statement', the scope chain is always restored to its former state;
* @description: Declaring "with" statement within a function constructor, leading to completion by exception;
* @strict_mode_negative
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S12.1_A1;
* @section: 12.1;
* @assertion: The production Block { } in strict code can't contain
* function declaration;
* @assertion: The production Block { } in strict code can't contain function declaration;
* @description: Trying to declare function at the Block statement;
* @negative SyntaxError;
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S12.5_A9_T1;
* @section: 12.5;
* @assertion: Function declaration within an "if" statement in strict
* code is not allowed;
* @assertion: Function declaration within an "if" statement in strict code is not allowed;
* @description: Declaring function within an "if" statement;
* @negative SyntaxError;
*/

View File

@ -4,10 +4,8 @@
/**
* @name: S12.5_A9_T2;
* @section: 12.5;
* @assertion: Function declaration within an "if" statement in strict
* code is not allowed;
* @description: Declaring function within an "if" that is declared
* within the strict function;
* @assertion: Function declaration within an "if" statement in strict code is not allowed;
* @description: Declaring function within an "if" that is declared within the strict function;
* @negative SyntaxError;
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S12.6.1_A13_T1;
* @section: 12.6.1, 13;
* @assertion: FunctionDeclaration within a "do-while" Block in strict
* code is not allowed;
* @assertion: FunctionDeclaration within a "do-while" Block in strict code is not allowed;
* @description: Declaring function within a "do-while" loop;
* @negative SyntaxError;
*/

View File

@ -4,10 +4,8 @@
/**
* @name: S12.6.1_A13_T2;
* @section: 12.6.1, 13;
* @assertion: FunctionDeclaration within a "do-while" Block in strict
* code is not allowed;
* @description: Declaring a function within a "do-while" loop that is
* within a strict function;
* @assertion: FunctionDeclaration within a "do-while" Block in strict code is not allowed;
* @description: Declaring a function within a "do-while" loop that is within a strict function;
* @negative SyntaxError;
*/

View File

@ -4,10 +4,8 @@
/**
* @name: S15.12.2_A1;
* @section: 15.12.2;
* @assertion: JSON.parse must create a property with the given
* property name;
* @description: Tests that JSON.parse treats "__proto__" as a regular
* property name;
* @assertion: JSON.parse must create a property with the given property name;
* @description: Tests that JSON.parse treats "__proto__" as a regular property name;
*/
var x = JSON.parse('{"__proto__":[]}');

View File

@ -4,8 +4,7 @@
/**
* @name: S15.2.4.2_A14;
* @section: 15.2.4.2;
* @assertion: Let O be the result of calling ToObject passing the this
* value as the argument.
* @assertion: Let O be the result of calling ToObject passing the this value as the argument.
*/
if (Object.prototype.toString.call(33) !== "[object Number]") {

View File

@ -4,8 +4,7 @@
/**
* @name: S15.2.4.2_A15;
* @section: 15.2.4.2;
* @assertion: Let O be the result of calling ToObject passing the this
* value as the argument.
* @assertion: Let O be the result of calling ToObject passing the this value as the argument.
*/
if (Object.prototype.toString.call(true) !== "[object Boolean]") {

View File

@ -4,8 +4,7 @@
/**
* @name: S15.2.4.2_A16;
* @section: 15.2.4.2;
* @assertion: Let O be the result of calling ToObject passing the this
* value as the argument.
* @assertion: Let O be the result of calling ToObject passing the this value as the argument.
*/
if (Object.prototype.toString.call('foo') !== "[object String]") {

View File

@ -4,8 +4,7 @@
/**
* @name: S15.2.4.3_A12;
* @section: 15.2.4.3;
* @assertion: Let O be the result of calling ToObject passing the this
* value as the argument.
* @assertion: Let O be the result of calling ToObject passing the this value as the argument.
* @negative
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S15.2.4.3_A13;
* @section: 15.2.4.3;
* @assertion: Let O be the result of calling ToObject passing the this
* value as the argument.
* @assertion: Let O be the result of calling ToObject passing the this value as the argument.
* @negative
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S15.2.4.4_A12;
* @section: 15.2.4.4;
* @assertion: Let O be the result of calling ToObject passing the this
* value as the argument.
* @assertion: Let O be the result of calling ToObject passing the this value as the argument.
* @negative
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S15.2.4.4_A13;
* @section: 15.2.4.4;
* @assertion: Let O be the result of calling ToObject passing the this
* value as the argument.
* @assertion: Let O be the result of calling ToObject passing the this value as the argument.
* @negative
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S15.2.4.4_A14;
* @section: 15.2.4.4;
* @assertion: Let O be the result of calling ToObject passing the this
* value as the argument.
* @assertion: Let O be the result of calling ToObject passing the this value as the argument.
* @negative
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S15.2.4.5_A12;
* @section: 15.2.4.5;
* @assertion: Let O be the result of calling ToObject passing the this
* value as the argument.
* @assertion: Let O be the result of calling ToObject passing the this value as the argument.
* @negative
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S15.2.4.5_A13;
* @section: 15.2.4.5;
* @assertion: Let O be the result of calling ToObject passing the this
* value as the argument.
* @assertion: Let O be the result of calling ToObject passing the this value as the argument.
* @negative
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S15.2.4.6_A12;
* @section: 15.2.4.6;
* @assertion: Let O be the result of calling ToObject passing the this
* value as the argument.
* @assertion: Let O be the result of calling ToObject passing the this value as the argument.
* @negative
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S15.2.4.6_A13;
* @section: 15.2.4.6;
* @assertion: Let O be the result of calling ToObject passing the this
* value as the argument.
* @assertion: Let O be the result of calling ToObject passing the this value as the argument.
* @negative
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S15.2.4.7_A12;
* @section: 15.2.4.7;
* @assertion: Let O be the result of calling ToObject passing the this
* value as the argument.
* @assertion: Let O be the result of calling ToObject passing the this value as the argument.
* @negative
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S15.2.4.7_A13;
* @section: 15.2.4.7;
* @assertion: Let O be the result of calling ToObject passing the this
* value as the argument.
* @assertion: Let O be the result of calling ToObject passing the this value as the argument.
* @negative
*/

View File

@ -4,9 +4,7 @@
/**
* @name: S15.3.4.2_A12;
* @section: 15.3.4.2;
* @assertion: The Function.prototype.toString function is not generic;
* it throws a TypeError exception if its this value is not
* a Function object.
* @assertion: The Function.prototype.toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
* @negative TypeError;
*/

View File

@ -4,9 +4,7 @@
/**
* @name: S15.3.4.2_A13;
* @section: 15.3.4.2;
* @assertion: The toString function is not generic; it throws a
* TypeError exception if its this value is not a Function
* object.
* @assertion: The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
* @negative TypeError;
*/

View File

@ -4,9 +4,7 @@
/**
* @name: S15.3.4.2_A14;
* @section: 15.3.4.2;
* @assertion: The toString function is not generic; it throws a
* TypeError exception if its this value is not a Function
* object.
* @assertion: The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
* @negative TypeError;
*/

View File

@ -4,12 +4,8 @@
/**
* @name: S15.3.4.2_A15;
* @section: 15.3.4.2;
* @assertion: The toString function is not generic; it throws a
* TypeError exception if its this value is not a Function
* object.
* @description: Whether or not they are callable, RegExp objects are
* not Function objects, so toString should throw a
* TypeError.
* @assertion: The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
* @description: Whether or not they are callable, RegExp objects are not Function objects, so toString should throw a TypeError.
* @negative TypeError;
*/

View File

@ -4,12 +4,8 @@
/**
* @name: S15.3.4.2_A16;
* @section: 15.3.4.2;
* @assertion: The toString function is not generic; it throws a
* TypeError exception if its this value is not a Function
* object.
* @description: The String constructor, given an object, should invoke
* that object's toString method as a method, i.e., with
* its this value bound to that object.
* @assertion: The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
* @description: The String constructor, given an object, should invoke that object's toString method as a method, i.e., with its this value bound to that object.
* @negative TypeError;
*/

View File

@ -5,10 +5,7 @@
* @name: S15.3.4.3_A16;
* @section: 15.3.4.3;
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
* @description: A RegExp is not a function, but it may be
* callable. Iff it is, it's typeof should be 'function',
* in which case apply should accept it as a valid this
* value.
* @description: A RegExp is not a function, but it may be callable. Iff it is, it's typeof should be 'function', in which case apply should accept it as a valid this value.
*/
var re = (/x/);

View File

@ -5,10 +5,7 @@
* @name: S15.3.4.4_A16;
* @section: 15.3.4.4;
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
* @description: A RegExp is not a function, but it may be
* callable. Iff it is, it's typeof should be 'function',
* in which case call should accept it as a valid this
* value.
* @description: A RegExp is not a function, but it may be callable. Iff it is, it's typeof should be 'function', in which case call should accept it as a valid this value.
*/
var re = (/x/);

View File

@ -5,10 +5,7 @@
* @name: S15.3.4.5_A16;
* @section: 15.3.4.5;
* @assertion: If IsCallable(func) is false, then throw a TypeError exception.
* @description: A RegExp is not a function, but it may be
* callable. Iff it is, it's typeof should be 'function',
* in which case bind should accept it as a valid this
* value.
* @description: A RegExp is not a function, but it may be callable. Iff it is, it's typeof should be 'function', in which case bind should accept it as a valid this value.
*/
var re = (/x/);

View File

@ -5,8 +5,7 @@
* @name: S15.3.4.5_A1;
* @section: 15.3.4.5;
* @assertion: "arguments" of bound function is poisoned (step 21);
* @description a bound function should fail to find the bound function
* "arguments";
* @description a bound function should fail to find the bound function "arguments";
* @negative TypeError;
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S15.3.4_A1;
* @section: 15.3.4;
* @assertion: The Function prototype object is itself a Function
* object (its [[Class]] is "Function");
* @assertion: The Function prototype object is itself a Function object (its [[Class]] is "Function");
* @description: Object.prototype.toString returns [object+[[Class]]+];
*/

View File

@ -4,9 +4,7 @@
/**
* @name: S15.3.4_A3_T1;
* @section: 15.3.4;
* @assertion: The value of the internal [[Prototype]] property of the
* Function prototype object is the Object prototype object
* (15.3.4);
* @assertion: The value of the internal [[Prototype]] property of the Function prototype object is the Object prototype object (15.3.4);
* @description: Checking prototype of Function.prototype;
*/

View File

@ -4,9 +4,7 @@
/**
* @name: S15.3.5.1_A1_T1;
* @section: 15.3.5.1;
* @assertion: The value of the length property is usually an integer
* that indicates the 'typical' number of arguments
* expected by the function;
* @assertion: The value of the length property is usually an integer that indicates the 'typical' number of arguments expected by the function;
* @description: Checking length property of Function("arg1,arg2,arg3", null);
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S15.4.4.11_A8;
* @section: 15.4.4.11;
* @assertion: Call the comparefn passing undefined as the this value
* (step 13b);
* @assertion: Call the comparefn passing undefined as the this value (step 13b);
* @description: comparefn tests that its this value is undefined;
*/

View File

@ -4,8 +4,7 @@
/**
* @name: S15.4.4_A1.1_T2;
* @section: 15.4.4;
* @assertion:The Array prototype object is itself an array; its
* [[Class]] is "Array",
* @assertion:The Array prototype object is itself an array; its [[Class]] is "Array",
*/
//CHECK#1