summaryrefslogtreecommitdiffstats
path: root/webkit/data/layout_tests
diff options
context:
space:
mode:
authorplesner@google.com <plesner@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-19 07:27:37 +0000
committerplesner@google.com <plesner@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-19 07:27:37 +0000
commit1fb29f1fe8626e43dd4942405231c7bfaac8fd47 (patch)
tree5dde6109164edb1eb005ed38969587463b7cedd2 /webkit/data/layout_tests
parent34aa8dce3a72a232fc92a5d95dffed3ac6ef00f8 (diff)
downloadchromium_src-1fb29f1fe8626e43dd4942405231c7bfaac8fd47.zip
chromium_src-1fb29f1fe8626e43dd4942405231c7bfaac8fd47.tar.gz
chromium_src-1fb29f1fe8626e43dd4942405231c7bfaac8fd47.tar.bz2
Ignored a handful of v8-related layout tests that we have no intention
of passing. Rebaselined some regexp tests where our behavior is deliberately different from safari. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10008 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/data/layout_tests')
-rw-r--r--webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/js/regexp-no-extensions-expected.txt46
-rw-r--r--webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/regex/malformed-escapes-expected.txt42
-rw-r--r--webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/js/README5
-rw-r--r--webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/js/regexp-no-extensions-expected.txt5
-rw-r--r--webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/regex/README5
-rw-r--r--webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/regex/malformed-escapes-expected.txt42
6 files changed, 143 insertions, 2 deletions
diff --git a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/js/regexp-no-extensions-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/js/regexp-no-extensions-expected.txt
new file mode 100644
index 0000000..4cd93ca
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/js/regexp-no-extensions-expected.txt
@@ -0,0 +1,46 @@
+Tests that regular expressions do not have extensions that diverge from the JavaScript specification. Because WebKit originally used a copy of PCRE, various non-JavaScript regular expression features were historically present. Also tests various related edge cases.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS /\x{41}/.exec("yA1") is null
+PASS /[\x{41}]/.exec("yA1").toString() is "1"
+PASS /\x1g/.exec("x1g").toString() is "x1g"
+PASS /[\x1g]/.exec("x").toString() is "x"
+PASS /[\x1g]/.exec("1").toString() is "1"
+PASS /\2147483648/.exec(String.fromCharCode(140) + "7483648").toString() is String.fromCharCode(140) + "7483648"
+PASS /\4294967296/.exec("\"94967296").toString() is "\"94967296"
+FAIL /\8589934592/.exec("\\8589934592").toString() should be \8589934592. Was 8589934592.
+PASS "\nAbc\n".replace(/(\n)[^\n]+$/, "$1") is "\nAbc\n"
+PASS /x$/.exec("x\n") is null
+PASS /x++/ threw exception SyntaxError: Invalid regular expression: /x++/: Nothing to repeat.
+PASS /[]]/.exec("]") is null
+
+Octal escape sequences are in Annex B of the standard.
+
+PASS /\060/.exec("y01").toString() is "0"
+PASS /[\060]/.exec("y01").toString() is "0"
+PASS /\606/.exec("y06").toString() is "06"
+PASS /[\606]/.exec("y06").toString() is "0"
+PASS /[\606]/.exec("y6").toString() is "6"
+PASS /\101/.exec("yA1").toString() is "A"
+PASS /[\101]/.exec("yA1").toString() is "A"
+PASS /\1011/.exec("yA1").toString() is "A1"
+PASS /[\1011]/.exec("yA1").toString() is "A"
+PASS /[\1011]/.exec("y1").toString() is "1"
+PASS /\10q/.exec("y" + String.fromCharCode(8) + "q").toString() is String.fromCharCode(8) + "q"
+PASS /[\10q]/.exec("y" + String.fromCharCode(8) + "q").toString() is String.fromCharCode(8)
+PASS /\1q/.exec("y" + String.fromCharCode(1) + "q").toString() is String.fromCharCode(1) + "q"
+PASS /[\1q]/.exec("y" + String.fromCharCode(1) + "q").toString() is String.fromCharCode(1)
+PASS /[\1q]/.exec("yq").toString() is "q"
+FAIL /\8q/.exec("\\8q").toString() should be \8q. Was 8q.
+PASS /[\8q]/.exec("y8q").toString() is "8"
+PASS /[\8q]/.exec("yq").toString() is "q"
+PASS /(x)\1q/.exec("xxq").toString() is "xxq,x"
+PASS /(x)[\1q]/.exec("xxq").toString() is "xq,x"
+PASS /(x)[\1q]/.exec("xx" + String.fromCharCode(1)).toString() is "x" + String.fromCharCode(1) + ",x"
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/regex/malformed-escapes-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/regex/malformed-escapes-expected.txt
new file mode 100644
index 0000000..fbe7d82
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/regex/malformed-escapes-expected.txt
@@ -0,0 +1,42 @@
+This page tests handling of malformed escape sequences.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+
+Testing regexp: /\ug/gm
+PASS regexp.test('ug') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: /\xg/gm
+PASS regexp.test('xg') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: /\c_/gm
+PASS regexp.test('\\c_') is true
+PASS regexp.lastIndex is 3
+
+Testing regexp: /[\B]/gm
+PASS regexp.test('B') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: /[\b]/gm
+PASS regexp.test('\b') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: /\8/gm
+PASS regexp.test('\\8') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: /^[\c]$/
+PASS regexp.test('c') is true
+
+Testing regexp: /^[\c_]$/
+FAIL regexp.test('c') should be false. Was true.
+
+Testing regexp: /^[\c]]$/
+PASS regexp.test('c]') is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/js/README b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/js/README
index 4f1eef4..6f60da1 100644
--- a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/js/README
+++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/js/README
@@ -139,3 +139,8 @@ function-dot-arguments-and-caller
The only difference is that V8 defines the caller of a custom toString function
as the function that calls toString() on the object. This treatment is
consistent with Firefox.
+
+regexp-no-extensions
+--------------------------
+The outcome of this test depends on a bug in Safari's implementation
+of regexp octal escapes.
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/js/regexp-no-extensions-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/js/regexp-no-extensions-expected.txt
index d4b2684..4cd93ca 100644
--- a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/js/regexp-no-extensions-expected.txt
+++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/js/regexp-no-extensions-expected.txt
@@ -10,7 +10,7 @@ PASS /[\x1g]/.exec("x").toString() is "x"
PASS /[\x1g]/.exec("1").toString() is "1"
PASS /\2147483648/.exec(String.fromCharCode(140) + "7483648").toString() is String.fromCharCode(140) + "7483648"
PASS /\4294967296/.exec("\"94967296").toString() is "\"94967296"
-PASS /\8589934592/.exec("8589934592").toString() is "8589934592"
+FAIL /\8589934592/.exec("\\8589934592").toString() should be \8589934592. Was 8589934592.
PASS "\nAbc\n".replace(/(\n)[^\n]+$/, "$1") is "\nAbc\n"
PASS /x$/.exec("x\n") is null
PASS /x++/ threw exception SyntaxError: Invalid regular expression: /x++/: Nothing to repeat.
@@ -33,7 +33,7 @@ PASS /[\10q]/.exec("y" + String.fromCharCode(8) + "q").toString() is String.from
PASS /\1q/.exec("y" + String.fromCharCode(1) + "q").toString() is String.fromCharCode(1) + "q"
PASS /[\1q]/.exec("y" + String.fromCharCode(1) + "q").toString() is String.fromCharCode(1)
PASS /[\1q]/.exec("yq").toString() is "q"
-PASS /\8q/.exec("y8q").toString() is "8q"
+FAIL /\8q/.exec("\\8q").toString() should be \8q. Was 8q.
PASS /[\8q]/.exec("y8q").toString() is "8"
PASS /[\8q]/.exec("yq").toString() is "q"
PASS /(x)\1q/.exec("xxq").toString() is "xxq,x"
@@ -43,3 +43,4 @@ PASS /(x)[\1q]/.exec("xx" + String.fromCharCode(1)).toString() is "x" + String.f
PASS successfullyParsed is true
TEST COMPLETE
+
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/regex/README b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/regex/README
index 6193cc8..b91f963 100644
--- a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/regex/README
+++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/regex/README
@@ -7,3 +7,8 @@ test1
/^\ca\cA\c[\c{\c:/
is a syntactically invalid JavaScript regular expression according to
the spec and we therefore reject it.
+
+malformed-escapes
+--------------------------
+The outcome of this test depends on a bug in Safari's implementation
+of regexp \c.
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/regex/malformed-escapes-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/regex/malformed-escapes-expected.txt
new file mode 100644
index 0000000..fbe7d82
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/regex/malformed-escapes-expected.txt
@@ -0,0 +1,42 @@
+This page tests handling of malformed escape sequences.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+
+Testing regexp: /\ug/gm
+PASS regexp.test('ug') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: /\xg/gm
+PASS regexp.test('xg') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: /\c_/gm
+PASS regexp.test('\\c_') is true
+PASS regexp.lastIndex is 3
+
+Testing regexp: /[\B]/gm
+PASS regexp.test('B') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: /[\b]/gm
+PASS regexp.test('\b') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: /\8/gm
+PASS regexp.test('\\8') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: /^[\c]$/
+PASS regexp.test('c') is true
+
+Testing regexp: /^[\c_]$/
+FAIL regexp.test('c') should be false. Was true.
+
+Testing regexp: /^[\c]]$/
+PASS regexp.test('c]') is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+