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; * @name: S7.5.3_A1.15;
* @section: 7.5.3; * @section: 7.5.3;
* @assertion: The "implements" token can not be used as identifier in * @assertion: The "implements" token can not be used as identifier in strict code;
* strict code; * @description: Checking if execution of "implements=1" fails in strict code;
* @description: Checking if execution of "implements=1" fails in
* strict code;
* @negative * @negative
*/ */

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,12 +4,8 @@
/** /**
* @name: S15.3.4.2_A16; * @name: S15.3.4.2_A16;
* @section: 15.3.4.2; * @section: 15.3.4.2;
* @assertion: The toString function is not generic; it throws a * @assertion: The toString function is not generic; it throws a TypeError exception if its this value is not a Function object.
* TypeError exception if its this value is not a Function * @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.
* 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; * @negative TypeError;
*/ */

View File

@ -5,10 +5,7 @@
* @name: S15.3.4.3_A16; * @name: S15.3.4.3_A16;
* @section: 15.3.4.3; * @section: 15.3.4.3;
* @assertion: If IsCallable(func) is false, then throw a TypeError exception. * @assertion: If IsCallable(func) is false, then throw a TypeError exception.
* @description: A RegExp is not a function, but it may be * @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.
* 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/); var re = (/x/);

View File

@ -5,10 +5,7 @@
* @name: S15.3.4.4_A16; * @name: S15.3.4.4_A16;
* @section: 15.3.4.4; * @section: 15.3.4.4;
* @assertion: If IsCallable(func) is false, then throw a TypeError exception. * @assertion: If IsCallable(func) is false, then throw a TypeError exception.
* @description: A RegExp is not a function, but it may be * @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.
* 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/); var re = (/x/);

View File

@ -5,10 +5,7 @@
* @name: S15.3.4.5_A16; * @name: S15.3.4.5_A16;
* @section: 15.3.4.5; * @section: 15.3.4.5;
* @assertion: If IsCallable(func) is false, then throw a TypeError exception. * @assertion: If IsCallable(func) is false, then throw a TypeError exception.
* @description: A RegExp is not a function, but it may be * @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.
* 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/); var re = (/x/);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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