diff options
author | Mike Pennisi <mike@mikepennisi.com> | 2015-06-08 17:35:11 -0400 |
---|---|---|
committer | Mike Pennisi <mike@mikepennisi.com> | 2015-06-18 17:38:34 -0400 |
commit | 29ecced632e5021932a3ced8cfec56d79c089cad (patch) | |
tree | bdf5184754e8fd5e14b3408b12b905ed6c63f510 /test/language/statements/try | |
parent | 6231fe20a4b02a4d8af50be17db5a26fc10e5c79 (diff) | |
download | qtdeclarative-testsuites-29ecced632e5021932a3ced8cfec56d79c089cad.tar.gz |
Update handling of directive prologues
Some tests specifically concern the application of the `use strict`
directive as it appears in JavaScript source code. These tests should
*not* be run with the `onlyStrict` flag because relying on the test
runner to enable strict mode makes the semantics of the source code
irrelevant. Update these tests to use the `noStrict` flag.
Other tests concern language semantics that are only valid in strict
mode, but the mechanism for enabling strictness is inconseqential.
Update these tests to use the `onlyStrict` flag and remove any redundant
`use strict` directive prologues contained within.
Still other tests are valid both within and outside of strict mode.
In keeping with the majority of other tests, do not specify any
restrictions on the environments in which these tests may be run.
Diffstat (limited to 'test/language/statements/try')
-rw-r--r-- | test/language/statements/try/12.14.1-1-s.js | 2 | ||||
-rw-r--r-- | test/language/statements/try/12.14.1-1gs.js | 1 | ||||
-rw-r--r-- | test/language/statements/try/12.14.1-2-s.js | 2 | ||||
-rw-r--r-- | test/language/statements/try/12.14.1-3-s.js | 2 | ||||
-rw-r--r-- | test/language/statements/try/12.14.1-4-s.js | 3 | ||||
-rw-r--r-- | test/language/statements/try/12.14.1-5-s.js | 3 | ||||
-rw-r--r-- | test/language/statements/try/12.14.1-6-s.js | 3 |
7 files changed, 0 insertions, 16 deletions
diff --git a/test/language/statements/try/12.14.1-1-s.js b/test/language/statements/try/12.14.1-1-s.js index 16dc6275a..1b6e125fa 100644 --- a/test/language/statements/try/12.14.1-1-s.js +++ b/test/language/statements/try/12.14.1-1-s.js @@ -15,8 +15,6 @@ includes: [runTestCase.js] ---*/ function testcase() { - "use strict"; - try { eval("\ try {} catch (eval) { }\ diff --git a/test/language/statements/try/12.14.1-1gs.js b/test/language/statements/try/12.14.1-1gs.js index 4574705f9..15ad7efc9 100644 --- a/test/language/statements/try/12.14.1-1gs.js +++ b/test/language/statements/try/12.14.1-1gs.js @@ -14,6 +14,5 @@ negative: SyntaxError flags: [onlyStrict] ---*/ -"use strict"; throw NotEarlyError; try { } catch (eval) { } diff --git a/test/language/statements/try/12.14.1-2-s.js b/test/language/statements/try/12.14.1-2-s.js index b33b29950..1a4a1bcf5 100644 --- a/test/language/statements/try/12.14.1-2-s.js +++ b/test/language/statements/try/12.14.1-2-s.js @@ -15,8 +15,6 @@ includes: [runTestCase.js] ---*/ function testcase() { - "use strict"; - try { eval("\ try {} catch (arguments) { }\ diff --git a/test/language/statements/try/12.14.1-3-s.js b/test/language/statements/try/12.14.1-3-s.js index 2ffc2c2a4..55811d8ee 100644 --- a/test/language/statements/try/12.14.1-3-s.js +++ b/test/language/statements/try/12.14.1-3-s.js @@ -15,8 +15,6 @@ includes: [runTestCase.js] ---*/ function testcase() { - "use strict"; - try{ eval(" try { \ throw new Error(\"...\");\ return false;\ diff --git a/test/language/statements/try/12.14.1-4-s.js b/test/language/statements/try/12.14.1-4-s.js index 4b4c34790..e60acb2ff 100644 --- a/test/language/statements/try/12.14.1-4-s.js +++ b/test/language/statements/try/12.14.1-4-s.js @@ -10,13 +10,10 @@ description: > Strict Mode - SyntaxError isn't thrown if a TryStatement with a Catch occurs within strict code and the Identifier of the Catch production is EVAL -flags: [onlyStrict] includes: [runTestCase.js] ---*/ function testcase() { - "use strict"; - try { throw new Error("..."); return false; diff --git a/test/language/statements/try/12.14.1-5-s.js b/test/language/statements/try/12.14.1-5-s.js index dc2462a55..a8c77901b 100644 --- a/test/language/statements/try/12.14.1-5-s.js +++ b/test/language/statements/try/12.14.1-5-s.js @@ -10,13 +10,10 @@ description: > Strict Mode - SyntaxError isn't thrown if a TryStatement with a Catch occurs within strict code and the Identifier of the Catch production is Arguments -flags: [onlyStrict] includes: [runTestCase.js] ---*/ function testcase() { - "use strict"; - try { throw new Error("..."); return false; diff --git a/test/language/statements/try/12.14.1-6-s.js b/test/language/statements/try/12.14.1-6-s.js index aa4624696..bf5ad70b9 100644 --- a/test/language/statements/try/12.14.1-6-s.js +++ b/test/language/statements/try/12.14.1-6-s.js @@ -10,13 +10,10 @@ description: > Strict Mode - SyntaxError isn't thrown if a TryStatement with a Catch occurs within strict code and the Identifier of the Catch production is ARGUMENTS -flags: [onlyStrict] includes: [runTestCase.js] ---*/ function testcase() { - "use strict"; - try { throw new Error("..."); return false; |