summaryrefslogtreecommitdiff
path: root/test/harness
diff options
context:
space:
mode:
authorMike Pennisi <mike@mikepennisi.com>2015-06-08 17:35:11 -0400
committerMike Pennisi <mike@mikepennisi.com>2015-06-18 17:38:34 -0400
commit29ecced632e5021932a3ced8cfec56d79c089cad (patch)
treebdf5184754e8fd5e14b3408b12b905ed6c63f510 /test/harness
parent6231fe20a4b02a4d8af50be17db5a26fc10e5c79 (diff)
downloadqtdeclarative-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/harness')
-rw-r--r--test/harness/propertyhelper-verifynotwritable-not-writable-strict.js1
-rw-r--r--test/harness/propertyhelper-verifywritable-not-writable-strict.js1
2 files changed, 0 insertions, 2 deletions
diff --git a/test/harness/propertyhelper-verifynotwritable-not-writable-strict.js b/test/harness/propertyhelper-verifynotwritable-not-writable-strict.js
index f30533116..6740d8d6c 100644
--- a/test/harness/propertyhelper-verifynotwritable-not-writable-strict.js
+++ b/test/harness/propertyhelper-verifynotwritable-not-writable-strict.js
@@ -6,7 +6,6 @@ description: >
Objects whose specified property is not writable satisfy the assertion in
strict mode.
includes: [propertyHelper.js]
-flags: [onlyStrict]
---*/
var obj = {};
diff --git a/test/harness/propertyhelper-verifywritable-not-writable-strict.js b/test/harness/propertyhelper-verifywritable-not-writable-strict.js
index 1ee497f78..85b3046c6 100644
--- a/test/harness/propertyhelper-verifywritable-not-writable-strict.js
+++ b/test/harness/propertyhelper-verifywritable-not-writable-strict.js
@@ -6,7 +6,6 @@ description: >
Objects whose specified property is not writable do not satisfy the
assertion in strict mode.
includes: [propertyHelper.js]
-flags: [onlyStrict]
---*/
var threw = false;