summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorMike Pennisi <mike@mikepennisi.com>2015-06-08 15:35:16 -0400
committerMike Pennisi <mike@mikepennisi.com>2015-07-07 13:18:55 -0400
commitab7617deddec3025848ac69ebdea6389b94e9a92 (patch)
treeed465dd578cc92a23991ffe2aa0399649074fa56 /CONTRIBUTING.md
parentc6ac3908682247326e098c5834537c5a279e9a60 (diff)
downloadqtdeclarative-testsuites-ab7617deddec3025848ac69ebdea6389b94e9a92.tar.gz
Implement `raw` flag
Some tests involving the directive prologue are invalidated by source text transformations that insert executable code in the beginning of the script. Implement a `raw` flag that allows these tests to opt-out of this transformation. Update the relevant tests to use this flag (and remove references to globals only available when code is injected). Update the Python runner accordingly: - Do not run tests marked as "raw" in strict mode - Reject invalid test configurations Update the browser runner accordingly: - Do not modify the script body of tests marked as "raw"
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 850b23b2c..042a9f633 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -117,6 +117,9 @@ This tag is for boolean properties associated with the test.
- **`noStrict`** - only run the test in "sloppy" mode
- **`module`** - interpret the source text as [module
code](http://www.ecma-international.org/ecma-262/6.0/#sec-modules)
+- **`raw`** - execute the test without any modification (no helpers will be
+ available); necessary to test the behavior of directive prologue; implies
+ `noStrict`
#### features
**features**: [list]