Changeset 42177 in webkit


Ignore:
Timestamp:
Apr 2, 2009 11:22:22 AM (15 years ago)
Author:
pam@chromium.org
Message:

2009-04-02 Pamela Greene <pam@chromium.org>

Reviewed by Darin Adler.

Split long-running regexp out of the main regexp-overflow test file
so VMs (such as V8) that don't limit execution time can still run
the rest of the test cases.
https://bugs.webkit.org/show_bug.cgi?id=18327

  • fast/js/regexp-overflow-expected.txt: updated
  • fast/js/regexp-overflow-too-big-expected.txt: Added.
  • fast/js/regexp-overflow-too-big.html: Added.
  • fast/js/resources/regexp-overflow-too-big.js: Added.
  • fast/js/resources/regexp-overflow.js: removed one test case
Location:
trunk/LayoutTests
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r42176 r42177  
     12009-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
    1162009-04-02  Pamela Greene  <pam@chromium.org>
    217
  • trunk/LayoutTests/fast/js/regexp-overflow-expected.txt

    r41849 r42177  
    1414PASS /|[x\B-\u00b5]/i.exec("").toString() is ""
    1515PASS new RegExp(complexPattern).exec(complexInput)[0] is complexInput
    16 PASS new RegExp(complexPattern + complexPattern).exec(complexInput + complexInput) is null
    1716PASS new RegExp(s); threw exception SyntaxError: Invalid regular expression: regular expression too large.
    1817PASS /(([ab]){30}){3360}/ threw exception SyntaxError: Invalid regular expression: regular expression too large.
  • trunk/LayoutTests/fast/js/resources/regexp-overflow.js

    r41849 r42177  
    3333
    3434shouldBe('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 .
    3639
    3740var s = "a";
Note: See TracChangeset for help on using the changeset viewer.