LayoutTests/fast/regex currently contains a number of test cases ported from PCRE...
authorbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Dec 2010 01:52:26 +0000 (01:52 +0000)
committerbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Dec 2010 01:52:26 +0000 (01:52 +0000)
commitf7c7066fbf73d2eff40704731973942aa94988cc
treeb4cf6f5ba9ec05ae685c6af95c2e1f6319fa988f
parent0bdc1ec1db00cc9cad0178e7a9db232ef4be16bb
LayoutTests/fast/regex currently contains a number of test cases ported from PCRE's test suites.
There are two key problems with these tests:
  * They use their own harness, and cannot be run from jsc without building all of WebKit.
  * They expect PCRE expression syntax, including extended syntax, backwards assertions, etc.

Rubber stamped by Oliver Hunt.

Rewrite all tests to comply to ECMA compatible syntax
(ish - we support octal escapes), and use the normal 'shouldBe' test style.

* fast/js/resources/standalone-pre.js:
(areArraysEqual):
    Fixed bug, where expected is an array we call areArraysEqual,
    this should first check that actual is an array.

* fast/regex/pcre-test-1-expected.txt: Added.
* fast/regex/pcre-test-1.html: Added.
* fast/regex/pcre-test-4-expected.txt: Added.
* fast/regex/pcre-test-4.html: Added.
* fast/regex/script-tests/pcre-test-1.js: Added.
* fast/regex/script-tests/pcre-test-4.js: Added.
    Added new version of PCRE tests.

* fast/regex/pcre-test-runner.js: Removed.
* fast/regex/test1-expected.txt: Removed.
* fast/regex/test1.html: Removed.
* fast/regex/test4-expected.txt: Removed.
* fast/regex/test4.html: Removed.
* fast/regex/testinput1: Removed.
* fast/regex/testinput4: Removed.
* fast/regex/testoutput1: Removed.
* fast/regex/testoutput4: Removed.
    Removed old version of PCRE tests.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72990 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/js/resources/standalone-pre.js
LayoutTests/fast/regex/pcre-test-1-expected.txt [new file with mode: 0644]
LayoutTests/fast/regex/pcre-test-1.html [new file with mode: 0644]
LayoutTests/fast/regex/pcre-test-4-expected.txt [new file with mode: 0644]
LayoutTests/fast/regex/pcre-test-4.html [new file with mode: 0644]
LayoutTests/fast/regex/pcre-test-runner.js [deleted file]
LayoutTests/fast/regex/script-tests/pcre-test-1.js [new file with mode: 0644]
LayoutTests/fast/regex/script-tests/pcre-test-4.js [new file with mode: 0644]
LayoutTests/fast/regex/test1-expected.txt [deleted file]
LayoutTests/fast/regex/test1.html [deleted file]
LayoutTests/fast/regex/test4-expected.txt [deleted file]
LayoutTests/fast/regex/test4.html [deleted file]
LayoutTests/fast/regex/testinput1 [deleted file]
LayoutTests/fast/regex/testinput4 [deleted file]
LayoutTests/fast/regex/testoutput1 [deleted file]
LayoutTests/fast/regex/testoutput4 [deleted file]