diff options
author | David Fugate <dfugate@microsoft.com> | 2012-01-16 12:51:55 -0800 |
---|---|---|
committer | David Fugate <dfugate@microsoft.com> | 2012-01-16 12:51:55 -0800 |
commit | 4d241e4bec1698e814e245158ce000282baaa454 (patch) | |
tree | 49de174ba8a53fb116ab4d15aba80a90f1024a0f /test | |
parent | b9160ef102b0b0b3952b991fbb0218b920c3339f (diff) |
S7.8.5_A3.1_T7 through S7.8.5_A3.1_T9 were invalid as written. The only way to specify unicode flags
to literal regexp patterns is through eval and similar mechanisms (e.g., Function constructor). Fixed.
All but two of the remaining disabled tests in excludelist.xml were disabled because the tests polluted
the global JS environment, not because the tests themselves were invalid. This is no longer an issue as
of the latest test262 harness (actually it wasn't an issue about a year ago either). Re-enabled.
Diffstat (limited to 'test')
-rw-r--r-- | test/config/excludelist.xml | 35 | ||||
-rw-r--r-- | test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T7.js | 5 | ||||
-rw-r--r-- | test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T8.js | 3 | ||||
-rw-r--r-- | test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T9.js | 3 |
4 files changed, 9 insertions, 37 deletions
diff --git a/test/config/excludelist.xml b/test/config/excludelist.xml index f00ede4de..d7504999a 100644 --- a/test/config/excludelist.xml +++ b/test/config/excludelist.xml @@ -1,36 +1,5 @@ <?xml version="1.0" encoding="utf-8" ?>
-<excludeList>
- <test id="S15.3.4.1_A1_T2">problem, bad test should be rewritten</test>
- <test id="S15.3.4.1_A1_T2">problem, bad test should be rewritten</test>
- <test id="S15.4.4.10_A4_T1">problem, bad test should be rewritten</test>
- <test id="S15.4.4.11_A6_T2">problem, bad test should be rewritten</test>
- <test id="S15.4.4.12_A4_T1">problem, bad test should be rewritten</test>
- <test id="S15.4.4.12_A4_T2">problem, bad test should be rewritten</test>
- <test id="S15.4.4.12_A4_T3">problem, bad test should be rewritten</test>
- <test id="S15.4.4.13_A4_T1">problem, bad test should be rewritten</test>
- <test id="S15.4.4.13_A4_T2">problem, bad test should be rewritten</test>
- <test id="S15.4.4.2_A3_T1">problem, bad test should be rewritten</test>
- <test id="S15.4.4.3_A3_T1">problem, bad test should be rewritten</test>
- <test id="S15.4.4.4_A3_T1">problem, bad test should be rewritten</test>
- <test id="S15.4.4.5_A5_T1">problem, bad test should be rewritten</test>
- <test id="S15.4.4.6_A4_T1">problem, bad test should be rewritten</test>
- <test id="S15.4.4.6_A4_T2">problem, bad test should be rewritten</test>
- <test id="S15.4.4.8_A4_T1">problem, bad test should be rewritten</test>
- <test id="S15.4.4.8_A4_T2">problem, bad test should be rewritten</test>
- <test id="S15.4.4.9_A4_T1">problem, bad test should be rewritten</test>
- <test id="S15.4.4.9_A4_T2">problem, bad test should be rewritten</test>
- <test id="S15.4.5.1_A1.2_T2">problem, bad test should be rewritten</test>
- <test id="S15.4.5.1_A1.2_T3">problem, bad test should be rewritten</test>
- <test id="S15.4.4.7_A5_T1">problem, bad test should be rewritten</test>
- <test id="S15.2.4_A1_T2">problem, bad test should be rewritten</test>
-
- <test id="S15.5.4.8_A1_T1">problem, bad var syntax. revised</test>
-
- <test id="S7.8.5_A3.1_T7">problem, syntax validation needs to use eval. revised</test>
- <test id="S7.8.5_A3.1_T8">problem, syntax validation needs to use eval. revised</test>
- <test id="S7.8.5_A3.1_T9">problem, syntax validation needs to use eval. revised</test>
-
+<excludeList>
<test id="S15.3_A3_T1">Uses this.</test>
<test id="S15.3_A3_T3">Uses this.</test>
-
- </excludeList>
+</excludeList>
\ No newline at end of file diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T7.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T7.js index b54dc6e76..7dee7d1ea 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T7.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T7.js @@ -1,4 +1,4 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. +// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** @@ -9,7 +9,8 @@ */ //CHECK#1 -var regexp = /(?:)/\u0067; +var regexp; +eval("regexp = /(?:)/\u0067"); if (regexp.global !== true) { $ERROR('#1: var regexp = /(?:)/\\u0067; regexp.global === true. Actual: ' + (regexp.global)); } diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T8.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T8.js index bc41d011c..de78b6f23 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T8.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T8.js @@ -9,7 +9,8 @@ */ //CHECK#1 -var regexp = /(?:)/\u0069; +var regexp; +eval("regexp = /(?:)/\u0069"); if (regexp.ignoreCase !== true) { $ERROR('#1: var regexp = /(?:)/\\u0069; regexp.ignoreCase === true. Actual: ' + (regexp.ignoreCase)); } diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T9.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T9.js index 2f34cac56..132586af4 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T9.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T9.js @@ -9,7 +9,8 @@ */ //CHECK#1 -var regexp = /(?:)/\u006D; +var regexp; +eval("regexp = /(?:)/\u006D"); if (regexp.multiline !== true) { $ERROR('#1: var regexp = /(?:)/\\u006D; regexp.multiline === true. Actual: ' + (regexp.multiline)); } |