Changeset 42177 in webkit
- Timestamp:
- Apr 2, 2009 11:22:22 AM (15 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r42176 r42177 1 2009-04-02 Pamela Greene <pam@chromium.org> 2 3 Reviewed by Darin Adler. 4 5 Split long-running regexp out of the main regexp-overflow test file 6 so VMs (such as V8) that don't limit execution time can still run 7 the rest of the test cases. 8 https://bugs.webkit.org/show_bug.cgi?id=18327 9 10 * fast/js/regexp-overflow-expected.txt: updated 11 * fast/js/regexp-overflow-too-big-expected.txt: Added. 12 * fast/js/regexp-overflow-too-big.html: Added. 13 * fast/js/resources/regexp-overflow-too-big.js: Added. 14 * fast/js/resources/regexp-overflow.js: removed one test case 15 1 16 2009-04-02 Pamela Greene <pam@chromium.org> 2 17 -
trunk/LayoutTests/fast/js/regexp-overflow-expected.txt
r41849 r42177 14 14 PASS /|[x\B-\u00b5]/i.exec("").toString() is "" 15 15 PASS new RegExp(complexPattern).exec(complexInput)[0] is complexInput 16 PASS new RegExp(complexPattern + complexPattern).exec(complexInput + complexInput) is null17 16 PASS new RegExp(s); threw exception SyntaxError: Invalid regular expression: regular expression too large. 18 17 PASS /(([ab]){30}){3360}/ threw exception SyntaxError: Invalid regular expression: regular expression too large. -
trunk/LayoutTests/fast/js/resources/regexp-overflow.js
r41849 r42177 33 33 34 34 shouldBe('new RegExp(complexPattern).exec(complexInput)[0]', 'complexInput'); // Big but OK 35 shouldBe('new RegExp(complexPattern + complexPattern).exec(complexInput + complexInput)', 'null'); // Too big 35 // The analogous "too big" case is tested separately in 36 // regexp-overflow-too-big.html so engines that don't limit regexp execution 37 // time don't time out in this test. See 38 // https://bugs.webkit.org/show_bug.cgi?id=18327 . 36 39 37 40 var s = "a";
Note: See TracChangeset
for help on using the changeset viewer.