Regenerated ietestcenter tests, taking into account info from IETCGlobalScope.js

This commit is contained in:
Mark Miller 2011-09-14 12:49:33 -07:00
parent aac6432ae1
commit 72d70024b9
28 changed files with 53 additions and 0 deletions

View File

@ -2,7 +2,9 @@
/**
* @path chapter07/7.6/7.6.1/7.6.1.2-1gs.js
* @description Strict Mode - SyntaxError is thrown when FutureReservedWord 'implements' occurs in strict mode code
* @strict_only
* @negative EarlyErrorRePat
*/

View File

@ -2,7 +2,9 @@
/**
* @path chapter07/7.8/7.8.3/7.8.3-1gs.js
* @description Strict Mode - octal extension(010) is forbidden in strict mode
* @strict_only
* @negative EarlyErrorRePat
*/

View File

@ -2,6 +2,8 @@
/**
* @path chapter07/7.8/7.8.5/7.8.5-1gs.js
* @description Empty literal RegExp should result in a SyntaxError
* @negative EarlyErrorRePat
*/
throw NotEarlyError;

View File

@ -2,6 +2,7 @@
/**
* @path chapter07/7.8/7.8.5/7.8.5-2gs.js
* @description Empty dynamic RegExp should not result in a SyntaxError
*/
var re = new RegExp("");

View File

@ -2,7 +2,9 @@
/**
* @path chapter08/8.7/8.7.2/8.7.2-3-a-1gs.js
* @description Strict Mode - ReferenceError is thrown if LeftHandSide evaluate to an unresolvable Reference
* @strict_only
* @negative .
*/

View File

@ -2,7 +2,9 @@
/**
* @path chapter08/8.7/8.7.2/8.7.2-3-a-2gs.js
* @description Strict Mode - 'runtime' error is thrown before LeftHandSide evaluates to an unresolvable Reference
* @strict_only
* @negative NotEarlyErrorString
*/

View File

@ -2,6 +2,9 @@
/**
* @path chapter10/10.1/10.1.1/10.1.1-2gs.js
* @description Strict Mode - Use Strict Directive Prologue is ''use strict'' which lost the last character ';'
* @strict_only
* @negative EarlyErrorRePat
*/
"use strict"

View File

@ -2,7 +2,9 @@
/**
* @path chapter10/10.1/10.1.1/10.1.1-5gs.js
* @description Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears at the start of the code
* @strict_only
* @negative EarlyErrorRePat
*/

View File

@ -2,7 +2,9 @@
/**
* @path chapter10/10.1/10.1.1/10.1.1-8gs.js
* @description Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears twice in the code
* @strict_only
* @negative EarlyErrorRePat
*/

View File

@ -2,7 +2,9 @@
/**
* @path chapter10/10.4/10.4.2/10.4.2.1-1gs.js
* @description Strict Mode - eval code cannot instantiate variable in the variable environment of the calling context that invoked the eval if the code of the calling context is strict code
* @strict_only
* @negative EarlyErrorRePat
*/

View File

@ -20,6 +20,7 @@
/**
* @path chapter10/10.4/10.4.3/10.4.3-1-7gs.js
* @description Strict - checking 'this' from a global scope (FunctionDeclaration defined within strict mode)
* @strict_only
*/

View File

@ -20,6 +20,8 @@
/**
* @path chapter10/10.4/10.4.3/10.4.3-1-8gs.js
* @description Strict - checking 'this' from a global scope (FunctionDeclaration includes strict directive prologue)
* @strict_only
*/
function f() {

View File

@ -2,7 +2,9 @@
/**
* @path chapter10/10.5/10.5-1gs.js
* @description Strict Mode - arguments cannot be assigned to in a strict function
* @strict_only
* @negative EarlyErrorRePat
*/

View File

@ -2,6 +2,7 @@
/**
* @path chapter10/10.6/10.6-1gs.js
* @description Strict Mode - arguments.callee cannot be accessed in a strict function, but does not throw an early error
* @strict_only
*/

View File

@ -2,7 +2,9 @@
/**
* @path chapter10/10.6/10.6-2gs.js
* @description Strict Mode - arguments.callee cannot be accessed in a strict function
* @strict_only
* @negative .
*/

View File

@ -2,6 +2,7 @@
/**
* @path chapter11/11.1/11.1.1/11.1.1-1gs.js
* @description Strict Mode - 'this' object at the global scope is not undefined
* @strict_only
*/

View File

@ -2,7 +2,9 @@
/**
* @path chapter11/11.13/11.13.2/11.13.2-6-1gs.js
* @description Strict Mode - SyntaxError is throw if the identifier eval appears as the LeftHandSideExpression of a Compound Assignment operator(*=)
* @strict_only
* @negative EarlyErrorRePat
*/

View File

@ -2,7 +2,9 @@
/**
* @path chapter11/11.3/11.3.1/11.3.1-2-1gs.js
* @description Strict Mode - SyntaxError is throw if the identifier arguments appear as a PostfixExpression(arguments++)
* @strict_only
* @negative EarlyErrorRePat
*/

View File

@ -2,7 +2,9 @@
/**
* @path chapter11/11.4/11.4.5/11.4.5-2-2gs.js
* @description Strict Mode - SyntaxError is throw if the UnaryExpression operated upon by a Prefix Increment operator(--arguments)
* @strict_only
* @negative EarlyErrorRePat
*/

View File

@ -2,7 +2,9 @@
/**
* @path chapter12/12.10/12.10.1/12.10.1-11gs.js
* @description Strict Mode - SyntaxError is thrown when using with statement
* @strict_only
* @negative EarlyErrorRePat
*/

View File

@ -2,7 +2,9 @@
/**
* @path chapter12/12.14/12.14.1/12.14.1-1gs.js
* @description Strict Mode - SyntaxError is thrown if a TryStatement with a Catch occurs within strict code and the Identifier of the Catch production is eval
* @strict_only
* @negative EarlyErrorRePat
*/

View File

@ -2,7 +2,9 @@
/**
* @path chapter13/13.0/13_4-17gs.js
* @description Strict Mode - SourceElements is evaluated as strict mode code when a Function constructor is contained in strict mode code
* @strict_only
* @negative NotEarlyErrorString
*/

View File

@ -2,7 +2,9 @@
/**
* @path chapter13/13.0/13_4-5gs.js
* @description Strict Mode - SourceElements is evaluated as strict mode code when a FunctionDeclaration is contained in strict mode code
* @strict_only
* @negative EarlyErrorRePat
*/

View File

@ -20,6 +20,7 @@
/**
* @path chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-625gs.js
* @description Globally declared variable should take precedence over Object.prototype property of the same name
*/
Object.defineProperty(Object.prototype,

View File

@ -2,7 +2,9 @@
/**
* @path chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-4gs.js
* @description Strict Mode - SyntaxError is thrown if a function using the Function constructor has two identical parameters in (global) strict mode
* @strict_only
* @negative NotEarlyErrorString
*/

View File

@ -2,6 +2,9 @@
/**
* @path chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-6gs.js
* @description Strict Mode - SyntaxError is thrown if a function using the Function constructor has two identical parameters in (local) strict mode
* @strict_only
* @negative NotEarlyErrorString
*/
throw NotEarlyError;

View File

@ -2,7 +2,9 @@
/**
* @path chapter15/15.3/15.3.5/15.3.5-1gs.js
* @description StrictMode - error is thrown when reading the 'caller' property of a function object
* @strict_only
* @negative NotEarlyErrorString
*/

View File

@ -2,7 +2,9 @@
/**
* @path chapter15/15.3/15.3.5/15.3.5-2gs.js
* @description StrictMode - error is thrown when reading the 'caller' property of a function object
* @strict_only
* @negative EarlyErrorRePat
*/