diff options
author | Sam Mikes <smikes@cubane.com> | 2014-07-18 16:22:37 -0600 |
---|---|---|
committer | Brian Terlson <brian.terlson@microsoft.com> | 2014-07-30 15:39:04 -0700 |
commit | c33bf0e0439e6f6bf084c1524d7df8d2b41c515d (patch) | |
tree | b585d0af6545014fedec09e0b663cc77e1547e84 /test/suite | |
parent | 0defa373854162392a3832e6edceeecd2ffd6705 (diff) | |
download | qtdeclarative-testsuites-c33bf0e0439e6f6bf084c1524d7df8d2b41c515d.tar.gz |
tools, harness: support new YAML frontmatter
parseTestRecord: add support for YAML frontmatter
parseTestRecord: initial unit test for test record parser
parseTestRecord: refactor for testing
factor old parsing; add YAML parsing
runner: support "includes" from YAML frontmatter
support frontmatter "includes" in python runner
use test.includes if present instead of scanning test code with regex
harness: factor individual functions out into files
tools: handle YAML errors
tolerate missing keys in dictionary (flags, includes)
report filename when empty frontmatter block
new option --list-includes to test262.py
harness: factor helper functions into separate files
sth: remove extra close-paren (syntax error)
test_common: TDD; failing parse of YAML
common: use parseTestRecord (YAML-aware)
Diffstat (limited to 'test/suite')
-rw-r--r-- | test/suite/ch08/8.7/8.7.2/8.7.2-3-a-2gs.js | 5 | ||||
-rw-r--r-- | test/suite/ch11/11.13/11.13.1/11.13.1-4-28gs.js | 5 | ||||
-rw-r--r-- | test/suite/ch13/13.0/13.0_4-17gs.js | 5 | ||||
-rw-r--r-- | test/suite/ch13/13.2/13.2-19-b-3gs.js | 5 | ||||
-rw-r--r-- | test/suite/ch15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-4gs.js | 5 | ||||
-rw-r--r-- | test/suite/ch15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-6gs.js | 5 | ||||
-rw-r--r-- | test/suite/ch15/15.3/15.3.5/15.3.5-1gs.js | 5 |
7 files changed, 21 insertions, 14 deletions
diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-2gs.js b/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-2gs.js index 1971dc913..38c32f3d2 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-2gs.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-2gs.js @@ -9,10 +9,11 @@ es5id: 8.7.2-3-a-2gs description: > Strict Mode - 'runtime' error is thrown before LeftHandSide evaluates to an unresolvable Reference -negative: NotEarlyError +negative: Test262Error flags: [onlyStrict] +includes: [Test262Error.js] ---*/ "use strict"; -throw NotEarlyError; +throw new Test262Error(); b = 11; diff --git a/test/suite/ch11/11.13/11.13.1/11.13.1-4-28gs.js b/test/suite/ch11/11.13/11.13.1/11.13.1-4-28gs.js index a34c144a8..fa6945bab 100644 --- a/test/suite/ch11/11.13/11.13.1/11.13.1-4-28gs.js +++ b/test/suite/ch11/11.13/11.13.1/11.13.1-4-28gs.js @@ -9,10 +9,11 @@ es5id: 11.13.1-4-28gs description: > Strict Mode - SyntaxError is thrown if the identifier 'Math.PI' appears as the LeftHandSideExpression of simple assignment(=) -negative: NotEarlyError +negative: Test262Error flags: [onlyStrict] +includes: [Test262Error.js] ---*/ "use strict"; -throw NotEarlyError; +throw new Test262Error(); Math.PI = 20; diff --git a/test/suite/ch13/13.0/13.0_4-17gs.js b/test/suite/ch13/13.0/13.0_4-17gs.js index 9b3efd73f..fe927783c 100644 --- a/test/suite/ch13/13.0/13.0_4-17gs.js +++ b/test/suite/ch13/13.0/13.0_4-17gs.js @@ -9,10 +9,11 @@ es5id: 13.0_4-17gs description: > Strict Mode - SourceElements is not evaluated as strict mode code when a Function constructor is contained in strict mode code -negative: NotEarlyError +negative: Test262Error flags: [onlyStrict] +includes: [Test262Error.js] ---*/ "use strict"; var _13_0_4_17_fun = new Function('eval = 42;'); -throw NotEarlyError; +throw new Test262Error(); diff --git a/test/suite/ch13/13.2/13.2-19-b-3gs.js b/test/suite/ch13/13.2/13.2-19-b-3gs.js index fac59e392..7a1243834 100644 --- a/test/suite/ch13/13.2/13.2-19-b-3gs.js +++ b/test/suite/ch13/13.2/13.2-19-b-3gs.js @@ -9,11 +9,12 @@ es5id: 13.2-19-b-3gs description: > StrictMode - error is thrown when assign a value to the 'caller' property of a function object -negative: NotEarlyError +negative: Test262Error flags: [onlyStrict] +includes: [Test262Error.js] ---*/ "use strict"; -throw NotEarlyError; +throw new Test262Error(); function _13_2_19_b_3_gs() {} _13_2_19_b_3_gs.caller = 1; diff --git a/test/suite/ch15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-4gs.js b/test/suite/ch15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-4gs.js index c82769b23..fcedd396c 100644 --- a/test/suite/ch15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-4gs.js +++ b/test/suite/ch15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-4gs.js @@ -10,10 +10,11 @@ description: > Strict Mode - SyntaxError is thrown if a function using the Function constructor has two identical parameters in (global) strict mode -negative: NotEarlyError +negative: Test262Error flags: [onlyStrict] +includes: [Test262Error.js] ---*/ "use strict"; -throw NotEarlyError; +throw new Test262Error(); var _15_3_2_1_10_4_fun = new Function('param_1', 'param_2', 'param_1', '"use strict"; return 0;'); diff --git a/test/suite/ch15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-6gs.js b/test/suite/ch15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-6gs.js index e4f23af63..32bb9a0e9 100644 --- a/test/suite/ch15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-6gs.js +++ b/test/suite/ch15/15.3/15.3.2/15.3.2.1/15.3.2.1-10-6gs.js @@ -10,9 +10,10 @@ description: > Strict Mode - SyntaxError is thrown if a function using the Function constructor has two identical parameters in (local) strict mode -negative: NotEarlyError +negative: Test262Error flags: [onlyStrict] +includes: [Test262Error.js] ---*/ -throw NotEarlyError; +throw new Test262Error(); var _15_3_2_1_10_6_fun = new Function('param_1', 'param_2', 'param_1', '"use strict";return 0;'); diff --git a/test/suite/ch15/15.3/15.3.5/15.3.5-1gs.js b/test/suite/ch15/15.3/15.3.5/15.3.5-1gs.js index cfab7132e..5cbf456d7 100644 --- a/test/suite/ch15/15.3/15.3.5/15.3.5-1gs.js +++ b/test/suite/ch15/15.3/15.3.5/15.3.5-1gs.js @@ -9,11 +9,12 @@ es5id: 15.3.5-1gs description: > StrictMode - error is thrown when reading the 'caller' property of a function object -negative: NotEarlyError +negative: Test262Error flags: [onlyStrict] +includes: [Test262Error.js] ---*/ "use strict"; function _15_3_5_1_gs() {} -throw NotEarlyError; +throw new Test262Error(); _15_3_5_1_gs.caller; |