diff --git a/test/suite/converted/07_Lexical_Conventions/.DS_Store b/test/suite/converted/07_Lexical_Conventions/.DS_Store deleted file mode 100644 index 16658debde..0000000000 Binary files a/test/suite/converted/07_Lexical_Conventions/.DS_Store and /dev/null differ diff --git a/test/suite/converted/08_Types/8.6_The_Object_Type/8.6.2_Internal_Properties_and_Methods/S8.6.2_A5_T1.js b/test/suite/converted/08_Types/8.6_The_Object_Type/8.6.2_Internal_Properties_and_Methods/S8.6.2_A5_T1.js index ba2359dc96..9149a58521 100644 --- a/test/suite/converted/08_Types/8.6_The_Object_Type/8.6.2_Internal_Properties_and_Methods/S8.6.2_A5_T1.js +++ b/test/suite/converted/08_Types/8.6_The_Object_Type/8.6.2_Internal_Properties_and_Methods/S8.6.2_A5_T1.js @@ -6,26 +6,26 @@ * * @path 08_Types/8.6_The_Object_Type/8.6.2_Internal_Properties_and_Methods/S8.6.2_A5_T1.js * @description Call function-property of object, property defined - * as screen = {touch:function(){count++}} + * as testScreen = {touch:function(){count++}} */ this.count=0; -var screen = {touch:function(){count++}}; +var testScreen = {touch:function(){count++}}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -screen.touch(); +testScreen.touch(); if (count !==1) { - $ERROR('#1: this.count=0; screen = {touch:function(){count++}}; screen.touch(); count === 1. Actual: ' + (count)); + $ERROR('#1: this.count=0; testScreen = {touch:function(){count++}}; testScreen.touch(); count === 1. Actual: ' + (count)); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -screen['touch'](); +testScreen['touch'](); if (count !==2) { - $ERROR('#2: this.count=0; screen = {touch:function(){count++}}; screen.touch(); screen[\'touch\'](); count === 2. Actual: ' + (count)); + $ERROR('#2: this.count=0; testScreen = {touch:function(){count++}}; testScreen.touch(); testScreen[\'touch\'](); count === 2. Actual: ' + (count)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/suite/converted/10_Execution_Contexts/.DS_Store b/test/suite/converted/10_Execution_Contexts/.DS_Store deleted file mode 100644 index a3c95a299f..0000000000 Binary files a/test/suite/converted/10_Execution_Contexts/.DS_Store and /dev/null differ diff --git a/test/suite/converted/10_Execution_Contexts/10.2_Lexical_Environments/.DS_Store b/test/suite/converted/10_Execution_Contexts/10.2_Lexical_Environments/.DS_Store deleted file mode 100644 index 19bbcd5ae9..0000000000 Binary files a/test/suite/converted/10_Execution_Contexts/10.2_Lexical_Environments/.DS_Store and /dev/null differ diff --git a/test/suite/converted/10_Execution_Contexts/10.4_Establishing_An_Execution_Context/.DS_Store b/test/suite/converted/10_Execution_Contexts/10.4_Establishing_An_Execution_Context/.DS_Store deleted file mode 100644 index defcffe04f..0000000000 Binary files a/test/suite/converted/10_Execution_Contexts/10.4_Establishing_An_Execution_Context/.DS_Store and /dev/null differ diff --git a/test/suite/converted/12_Statement/12.6_Iteration_Statements/12.6.4_The_for_in_Statement/S12.6.4_A14_T1.js b/test/suite/converted/12_Statement/12.6_Iteration_Statements/12.6.4_The_for_in_Statement/S12.6.4_A14_T1.js deleted file mode 100644 index cc7d2eca04..0000000000 --- a/test/suite/converted/12_Statement/12.6_Iteration_Statements/12.6.4_The_for_in_Statement/S12.6.4_A14_T1.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/** - * FunctionExpession within a "for-in" Expression is allowed - * - * @path 12_Statement/12.6_Iteration_Statements/12.6.4_The_for_in_Statement/S12.6.4_A14_T1.js - * @description Using "function __func(){return 0;}" as Expession - */ - -////////////////////////////////////////////////////////////////////////////// -//CHECK# -for(x in function __func(){return 0;}){ - if (x=="prototype") - var __reached = 1; -}; -// -////////////////////////////////////////////////////////////////////////////// - -////////////////////////////////////////////////////////////////////////////// -//CHECK#2 -if (__reached !== 1) { - $ERROR('#2: function expession inside of for-in expression is allowed'); -} -// -////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/converted/15_Native/15.10_RegExp_Objects/15.10.2_Pattern_Semantics/15.10.2.11_DecimalEscape/S15.10.2.11_A1_T2.js b/test/suite/converted/15_Native/15.10_RegExp_Objects/15.10.2_Pattern_Semantics/15.10.2.11_DecimalEscape/S15.10.2.11_A1_T2.js deleted file mode 100644 index d72087e540..0000000000 --- a/test/suite/converted/15_Native/15.10_RegExp_Objects/15.10.2_Pattern_Semantics/15.10.2.11_DecimalEscape/S15.10.2.11_A1_T2.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path 15_Native/15.10_RegExp_Objects/15.10.2_Pattern_Semantics/15.10.2.11_DecimalEscape/S15.10.2.11_A1_T2.js - * @description It is an error if n is greater than the total number of left capturing parentheses in the entire regular expression - * @negative - */ - -/\1/.exec(""); -/\2/.exec(""); -/\3/.exec(""); -/\4/.exec(""); -/\5/.exec(""); -/\6/.exec(""); -/\7/.exec(""); -/\8/.exec(""); -/\9/.exec(""); -/\10/.exec(""); - diff --git a/test/suite/converted/15_Native/15.10_RegExp_Objects/15.10.2_Pattern_Semantics/15.10.2.11_DecimalEscape/S15.10.2.11_A1_T3.js b/test/suite/converted/15_Native/15.10_RegExp_Objects/15.10.2_Pattern_Semantics/15.10.2.11_DecimalEscape/S15.10.2.11_A1_T3.js deleted file mode 100644 index e2b1eebe65..0000000000 --- a/test/suite/converted/15_Native/15.10_RegExp_Objects/15.10.2_Pattern_Semantics/15.10.2.11_DecimalEscape/S15.10.2.11_A1_T3.js +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path 15_Native/15.10_RegExp_Objects/15.10.2_Pattern_Semantics/15.10.2.11_DecimalEscape/S15.10.2.11_A1_T3.js - * @description It is an error if n is greater than the total number of left capturing parentheses in the entire regular expression - * @negative - */ - -/(?:A)\2/.exec("AA"); - diff --git a/test/suite/converted/bestPractice/Sbp_A1_T1.js b/test/suite/converted/bestPractice/Sbp_A1_T1.js new file mode 100644 index 0000000000..ff41177c5d --- /dev/null +++ b/test/suite/converted/bestPractice/Sbp_A1_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * The production Block { } in strict code can't contain function + * declaration; + * + * @path bestPractice/Sbp_A1_T1.js + * @description Trying to declare function at the Block statement + * @onlyStrict + * @negative SyntaxError + * @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls + */ + +"use strict"; +{ + function __func(){} +} + diff --git a/test/suite/converted/bestPractice/Sbp_A2_T1.js b/test/suite/converted/bestPractice/Sbp_A2_T1.js new file mode 100644 index 0000000000..52d28970d9 --- /dev/null +++ b/test/suite/converted/bestPractice/Sbp_A2_T1.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Function declaration within an "if" statement in strict code is not + * allowed + * + * @path bestPractice/Sbp_A2_T1.js + * @description Declaring function within a strict "if" statement + * @onlyStrict + * @negative SyntaxError + * @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls + */ + +"use strict"; +if (true) { + function __func(){}; +} else { + function __func(){}; +} + diff --git a/test/suite/converted/bestPractice/Sbp_A2_T2.js b/test/suite/converted/bestPractice/Sbp_A2_T2.js new file mode 100644 index 0000000000..8fedbf1ceb --- /dev/null +++ b/test/suite/converted/bestPractice/Sbp_A2_T2.js @@ -0,0 +1,23 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Function declaration within an "if" statement in strict code is not allowed; + * + * @path bestPractice/Sbp_A2_T2.js + * @description Declaring function within an "if" that is declared + * within the strict function + * @onlyStrict + * @negative SyntaxError + * @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls + */ + +"use strict"; +(function(){ + if (true) { + function __func(){}; + } else { + function __func(){}; + } +}); + diff --git a/test/suite/converted/bestPractice/Sbp_A3_T1.js b/test/suite/converted/bestPractice/Sbp_A3_T1.js new file mode 100644 index 0000000000..e73dd940d5 --- /dev/null +++ b/test/suite/converted/bestPractice/Sbp_A3_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * FunctionDeclaration within a "do-while" Block in strict code is not + * allowed + * + * @path bestPractice/Sbp_A3_T1.js + * @description Declaring function within a "do-while" loop + * @onlyStrict + * @negative SyntaxError + * @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls + */ + +"use strict"; +do { + function __func(){}; +} while(0); + diff --git a/test/suite/converted/bestPractice/Sbp_A3_T2.js b/test/suite/converted/bestPractice/Sbp_A3_T2.js new file mode 100644 index 0000000000..9d6c6a7de0 --- /dev/null +++ b/test/suite/converted/bestPractice/Sbp_A3_T2.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * FunctionDeclaration within a "do-while" Block in strict code is not allowed + * + * @path bestPractice/Sbp_A3_T2.js + * @description Declaring a function within a "do-while" loop that is + * within a strict function + * @onlyStrict + * @negative SyntaxError + * @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls + */ + +"use strict"; +(function(){ + do { + function __func(){}; + } while(0); +}); + diff --git a/test/suite/converted/bestPractice/Sbp_A4_T1.js b/test/suite/converted/bestPractice/Sbp_A4_T1.js new file mode 100644 index 0000000000..0fdb43897a --- /dev/null +++ b/test/suite/converted/bestPractice/Sbp_A4_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * FunctionDeclaration within a "while" Statement is not allowed + * + * @path bestPractice/Sbp_A4_T1.js + * @description Checking if declaring a function within a "while" + * Statement leads to an exception + * @onlyStrict + * @negative SyntaxError + * @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls + */ + +"use strict"; +while (0) { + function __func(){}; +}; + diff --git a/test/suite/converted/bestPractice/Sbp_A4_T2.js b/test/suite/converted/bestPractice/Sbp_A4_T2.js new file mode 100644 index 0000000000..c9145fcc47 --- /dev/null +++ b/test/suite/converted/bestPractice/Sbp_A4_T2.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * FunctionDeclaration within a "while" Statement is not allowed + * + * @path bestPractice/Sbp_A4_T2.js + * @description Checking if declaring a function within a "while" + * Statement that is in a function call leads to an exception + * @onlyStrict + * @negative SyntaxError + * @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls + */ + +"use strict"; +(function(){ + while (0) { + function __func(){}; + }; +})(); + diff --git a/test/suite/converted/bestPractice/Sbp_A5_T1.js b/test/suite/converted/bestPractice/Sbp_A5_T1.js new file mode 100644 index 0000000000..b9cf110802 --- /dev/null +++ b/test/suite/converted/bestPractice/Sbp_A5_T1.js @@ -0,0 +1,18 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * FunctionDeclaration within a "for-in" Statement is not allowed + * + * @path bestPractice/Sbp_A5_T1.js + * @description Declaring function within a "for-in" Statement + * @onlyStrict + * @negative SyntaxError + * @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls + */ + +"use strict"; +for (x in this) { + function __func(){}; +} + diff --git a/test/suite/converted/bestPractice/Sbp_A5_T2.js b/test/suite/converted/bestPractice/Sbp_A5_T2.js new file mode 100644 index 0000000000..208be598f6 --- /dev/null +++ b/test/suite/converted/bestPractice/Sbp_A5_T2.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * FunctionDeclaration within a "for-in" Statement is not allowed + * + * @path bestPractice/Sbp_A5_T2.js + * @description Declaring function within a "for-in" Statement that is + * within a function call + * @onlyStrict + * @negative SyntaxError + * @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls + */ + +"use strict"; +(function(){ + for (x in this) { + function __func(){}; + } +})(); + diff --git a/test/suite/converted/chapter07/.DS_Store b/test/suite/converted/chapter07/.DS_Store deleted file mode 100644 index 68ff27b464..0000000000 Binary files a/test/suite/converted/chapter07/.DS_Store and /dev/null differ diff --git a/test/suite/converted/chapter08/8.7/8.7.2/8.7.2-3-a-2gs.js b/test/suite/converted/chapter08/8.7/8.7.2/8.7.2-3-a-2gs.js index 41c7cf94d2..0c96f289b1 100644 --- a/test/suite/converted/chapter08/8.7/8.7.2/8.7.2-3-a-2gs.js +++ b/test/suite/converted/chapter08/8.7/8.7.2/8.7.2-3-a-2gs.js @@ -4,7 +4,7 @@ * @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 * @onlyStrict - * @negative NotEarlyErrorString + * @negative NotEarlyError */ "use strict"; diff --git a/test/suite/converted/chapter13/13.0/13_4-17gs.js b/test/suite/converted/chapter13/13.0/13_4-17gs.js index be51e4a734..df91858b54 100644 --- a/test/suite/converted/chapter13/13.0/13_4-17gs.js +++ b/test/suite/converted/chapter13/13.0/13_4-17gs.js @@ -4,7 +4,7 @@ * @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 * @onlyStrict - * @negative NotEarlyErrorString + * @negative NotEarlyError */ "use strict"; diff --git a/test/suite/converted/chapter15/.DS_Store b/test/suite/converted/chapter15/.DS_Store deleted file mode 100644 index d14f2a095f..0000000000 Binary files a/test/suite/converted/chapter15/.DS_Store and /dev/null differ diff --git a/test/suite/converted/chapter15/15.1/.DS_Store b/test/suite/converted/chapter15/15.1/.DS_Store deleted file mode 100644 index d1216095bf..0000000000 Binary files a/test/suite/converted/chapter15/15.1/.DS_Store and /dev/null differ diff --git a/test/suite/converted/chapter15/15.1/15.1.1/.DS_Store b/test/suite/converted/chapter15/15.1/15.1.1/.DS_Store deleted file mode 100644 index 42cad22c38..0000000000 Binary files a/test/suite/converted/chapter15/15.1/15.1.1/.DS_Store and /dev/null differ diff --git a/test/suite/converted/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-4gs.js b/test/suite/converted/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-4gs.js index 5d592f2ed5..7928bdac2a 100644 --- a/test/suite/converted/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-4gs.js +++ b/test/suite/converted/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-4gs.js @@ -4,7 +4,7 @@ * @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 * @onlyStrict - * @negative NotEarlyErrorString + * @negative NotEarlyError */ "use strict"; diff --git a/test/suite/converted/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-6gs.js b/test/suite/converted/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-6gs.js index ac66b7856c..33bbbc55d1 100644 --- a/test/suite/converted/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-6gs.js +++ b/test/suite/converted/chapter15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-6gs.js @@ -4,7 +4,7 @@ * @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 * @onlyStrict - * @negative NotEarlyErrorString + * @negative NotEarlyError */ throw NotEarlyError; diff --git a/test/suite/converted/chapter15/15.3/15.3.5/15.3.5-1gs.js b/test/suite/converted/chapter15/15.3/15.3.5/15.3.5-1gs.js index fe686a6fbb..dfdb33e702 100644 --- a/test/suite/converted/chapter15/15.3/15.3.5/15.3.5-1gs.js +++ b/test/suite/converted/chapter15/15.3/15.3.5/15.3.5-1gs.js @@ -4,7 +4,7 @@ * @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 * @onlyStrict - * @negative NotEarlyErrorString + * @negative NotEarlyError */ "use strict";