summaryrefslogtreecommitdiffstats
path: root/webkit/data
diff options
context:
space:
mode:
authorager@chromium.org <ager@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-12 20:28:23 +0000
committerager@chromium.org <ager@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-12 20:28:23 +0000
commitf312779e16ac93371c46c3015c68aa068bcbc6e4 (patch)
tree60eaed6398b1bbd58c9130dd9a2299ead97021a6 /webkit/data
parentedb4c82c5b851305a2045fc4661912c7d6b10de4 (diff)
downloadchromium_src-f312779e16ac93371c46c3015c68aa068bcbc6e4.zip
chromium_src-f312779e16ac93371c46c3015c68aa068bcbc6e4.tar.gz
chromium_src-f312779e16ac93371c46c3015c68aa068bcbc6e4.tar.bz2
A couple of layout test updates:
- Enabled regex test on mac. Seem to work as intended. - Rebaseline regex/non-pattern-characters. Only error messages differ. - Add rebaselining for early-acid3-86. Was already rebaselined for Windows/Linux and only error messages differ. - Update rebaselining for window-lookup-precedence tests. Now matches the Window/Linux versions. Review URL: http://codereview.chromium.org/20318 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9695 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/data')
-rw-r--r--webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/regex/early-acid3-86-expected.txt12
-rw-r--r--webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/regex/non-pattern-characters-expected.txt173
-rw-r--r--webkit/data/layout_tests/platform/chromium-mac/chrome/fast/dom/Window/window-lookup-precedence-2-expected.txt2
-rw-r--r--webkit/data/layout_tests/platform/chromium-mac/chrome/fast/dom/Window/window-lookup-precedence-expected.txt2
-rw-r--r--webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/regex/non-pattern-characters-expected.txt173
5 files changed, 358 insertions, 4 deletions
diff --git a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/regex/early-acid3-86-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/regex/early-acid3-86-expected.txt
new file mode 100644
index 0000000..b73673c
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/regex/early-acid3-86-expected.txt
@@ -0,0 +1,12 @@
+Test that covers capturing brackets, and was adapted from a part of an early version of Acid3.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS /TA[])]/.exec('TA]') threw exception SyntaxError: Invalid regular expression: /TA[])]/: Unmatched ')'.
+PASS /[]/.exec('') is null
+PASS /(\3)(\1)(a)/.exec('cat').toString() is 'a,,,a'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/regex/non-pattern-characters-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/regex/non-pattern-characters-expected.txt
new file mode 100644
index 0000000..6f6f63b
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/regex/non-pattern-characters-expected.txt
@@ -0,0 +1,173 @@
+This page tests handling of characters which, according to ECMA 262, are not regular expression PatternCharacters. Those characters are: ^ $ . * + ? ( ) [ ] { } |
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+
+Testing regexp: /^/g
+PASS regexp.test('') is true
+PASS regexp.lastIndex is 0
+
+Testing regexp: /\n^/gm
+PASS regexp.test('\n\n') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: /$/g
+PASS regexp.test('') is true
+PASS regexp.lastIndex is 0
+
+Testing regexp: /\n$/gm
+PASS regexp.test('\n\n') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: /\z/
+PASS regexp.test('z') is true
+
+Testing regexp: /a\z/
+PASS regexp.test('az') is true
+
+Testing regexp: /\_/
+PASS regexp.test('_') is true
+
+Testing regexp: /a\_/
+PASS regexp.test('a_') is true
+
+Testing regexp: [invalid \ variations]
+PASS /\/ threw exception SyntaxError: Invalid regular expression: missing /.
+PASS /a\/ threw exception SyntaxError: Invalid regular expression: missing /.
+
+Testing regexp: /./
+PASS regexp.test('a') is true
+PASS regexp.test('\n') is false
+
+Testing regexp: /a./
+PASS regexp.test('aa') is true
+PASS regexp.test('a\n') is false
+
+Testing regexp: /a*/gm
+PASS regexp.test('b') is true
+PASS regexp.lastIndex is 0
+PASS regexp.test('aaba') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: [invalid * variations]
+PASS /*/ threw exception SyntaxError: Unexpected token ILLEGAL.
+PASS /^*/ threw exception SyntaxError: Invalid regular expression: /^*/: Nothing to repeat.
+
+Testing regexp: /a+/gm
+PASS regexp.test('b') is false
+PASS regexp.test('aaba') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: [invalid + variations]
+PASS /+/ threw exception SyntaxError: Invalid regular expression: /+/: Nothing to repeat.
+
+Testing regexp: /a?/gm
+PASS regexp.test('b') is true
+PASS regexp.lastIndex is 0
+PASS regexp.test('aaba') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: [invalid ? variations]
+PASS /?/ threw exception SyntaxError: Invalid regular expression: /?/: Nothing to repeat.
+
+Testing regexp: [invalid ( variations]
+PASS /(/ threw exception SyntaxError: Invalid regular expression: /(/: Unterminated group.
+PASS /a(/ threw exception SyntaxError: Invalid regular expression: /a(/: Unterminated group.
+
+Testing regexp: [invalid ) variations]
+PASS /)/ threw exception SyntaxError: Invalid regular expression: /)/: Unmatched ')'.
+PASS /a)/ threw exception SyntaxError: Invalid regular expression: /a)/: Unmatched ')'.
+
+Testing regexp: [invalid [ variations]
+PASS /[/ threw exception SyntaxError: Invalid regular expression: missing /.
+PASS /a[/ threw exception SyntaxError: Invalid regular expression: missing /.
+PASS /[b-a]/ threw exception SyntaxError: Invalid regular expression: /[b-a]/: Range out of order in character class.
+PASS /a[b-a]/ threw exception SyntaxError: Invalid regular expression: /a[b-a]/: Range out of order in character class.
+
+Testing regexp: /]/gm
+PASS regexp.test(']') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: /a]/gm
+PASS regexp.test('a]') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: /{/gm
+PASS regexp.test('{') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: /a{/gm
+PASS regexp.test('a{') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: /{a/gm
+PASS regexp.test('{a') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: /a{a/gm
+PASS regexp.test('a{a') is true
+PASS regexp.lastIndex is 3
+
+Testing regexp: /{1,/gm
+PASS regexp.test('{1,') is true
+PASS regexp.lastIndex is 3
+
+Testing regexp: /a{1,/gm
+PASS regexp.test('a{1,') is true
+PASS regexp.lastIndex is 4
+
+Testing regexp: /{1,a/gm
+PASS regexp.test('{1,a') is true
+PASS regexp.lastIndex is 4
+
+Testing regexp: /{1,0/gm
+PASS regexp.test('{1,0') is true
+PASS regexp.lastIndex is 4
+
+Testing regexp: /{1, 0}/gm
+PASS regexp.test('{1, 0}') is true
+PASS regexp.lastIndex is 6
+
+Testing regexp: /a{1, 0}/gm
+PASS regexp.test('a{1, 0}') is true
+PASS regexp.lastIndex is 7
+
+Testing regexp: /a{1,0/gm
+PASS regexp.test('a{1,0') is true
+PASS regexp.lastIndex is 5
+
+Testing regexp: /a{0}/gm
+PASS regexp.test('a') is true
+PASS regexp.lastIndex is 0
+PASS regexp.test('b') is true
+PASS regexp.lastIndex is 0
+
+Testing regexp: [invalid {} variations]
+PASS /{0}/ threw exception SyntaxError: Invalid regular expression: /{0}/: Nothing to repeat.
+PASS /{1,0}/ threw exception SyntaxError: Invalid regular expression: /{1,0}/: Nothing to repeat.
+PASS /a{1,0}/ threw exception SyntaxError: Invalid regular expression: /a{1,0}/: numbers out of order in {} quantifier..
+
+Testing regexp: /}/gm
+PASS regexp.test('}') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: /a}/gm
+PASS regexp.test('a}') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: /(?:)/gm
+PASS regexp.test('') is true
+PASS regexp.lastIndex is 0
+
+Testing regexp: /|/gm
+PASS regexp.test('|') is true
+PASS regexp.lastIndex is 0
+
+Testing regexp: /a|/gm
+PASS regexp.test('|') is true
+PASS regexp.lastIndex is 0
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/webkit/data/layout_tests/platform/chromium-mac/chrome/fast/dom/Window/window-lookup-precedence-2-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/chrome/fast/dom/Window/window-lookup-precedence-2-expected.txt
index 28b2d90..41bb694 100644
--- a/webkit/data/layout_tests/platform/chromium-mac/chrome/fast/dom/Window/window-lookup-precedence-2-expected.txt
+++ b/webkit/data/layout_tests/platform/chromium-mac/chrome/fast/dom/Window/window-lookup-precedence-2-expected.txt
@@ -1,4 +1,3 @@
-
window.Attr : PASS
window.CDATASection : PASS
window.CSSCharsetRule : PASS
@@ -229,4 +228,3 @@ window.toString : PASS
window.toolbar : PASS
window.top : PASS
window.window : PASS
-
diff --git a/webkit/data/layout_tests/platform/chromium-mac/chrome/fast/dom/Window/window-lookup-precedence-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/chrome/fast/dom/Window/window-lookup-precedence-expected.txt
index ad9018a..e7eeda5e 100644
--- a/webkit/data/layout_tests/platform/chromium-mac/chrome/fast/dom/Window/window-lookup-precedence-expected.txt
+++ b/webkit/data/layout_tests/platform/chromium-mac/chrome/fast/dom/Window/window-lookup-precedence-expected.txt
@@ -1,4 +1,3 @@
-
window.Attr IS function Attr() { [native code] }
window.CDATASection IS function CDATASection() { [native code] }
window.CSSCharsetRule IS function CSSCharsetRule() { [native code] }
@@ -229,4 +228,3 @@ window.toString IS [object global]
window.toolbar IS [object BarInfo]
window.top IS [object global]
window.window IS [object global]
-
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/regex/non-pattern-characters-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/regex/non-pattern-characters-expected.txt
new file mode 100644
index 0000000..6f6f63b
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/regex/non-pattern-characters-expected.txt
@@ -0,0 +1,173 @@
+This page tests handling of characters which, according to ECMA 262, are not regular expression PatternCharacters. Those characters are: ^ $ . * + ? ( ) [ ] { } |
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+
+Testing regexp: /^/g
+PASS regexp.test('') is true
+PASS regexp.lastIndex is 0
+
+Testing regexp: /\n^/gm
+PASS regexp.test('\n\n') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: /$/g
+PASS regexp.test('') is true
+PASS regexp.lastIndex is 0
+
+Testing regexp: /\n$/gm
+PASS regexp.test('\n\n') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: /\z/
+PASS regexp.test('z') is true
+
+Testing regexp: /a\z/
+PASS regexp.test('az') is true
+
+Testing regexp: /\_/
+PASS regexp.test('_') is true
+
+Testing regexp: /a\_/
+PASS regexp.test('a_') is true
+
+Testing regexp: [invalid \ variations]
+PASS /\/ threw exception SyntaxError: Invalid regular expression: missing /.
+PASS /a\/ threw exception SyntaxError: Invalid regular expression: missing /.
+
+Testing regexp: /./
+PASS regexp.test('a') is true
+PASS regexp.test('\n') is false
+
+Testing regexp: /a./
+PASS regexp.test('aa') is true
+PASS regexp.test('a\n') is false
+
+Testing regexp: /a*/gm
+PASS regexp.test('b') is true
+PASS regexp.lastIndex is 0
+PASS regexp.test('aaba') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: [invalid * variations]
+PASS /*/ threw exception SyntaxError: Unexpected token ILLEGAL.
+PASS /^*/ threw exception SyntaxError: Invalid regular expression: /^*/: Nothing to repeat.
+
+Testing regexp: /a+/gm
+PASS regexp.test('b') is false
+PASS regexp.test('aaba') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: [invalid + variations]
+PASS /+/ threw exception SyntaxError: Invalid regular expression: /+/: Nothing to repeat.
+
+Testing regexp: /a?/gm
+PASS regexp.test('b') is true
+PASS regexp.lastIndex is 0
+PASS regexp.test('aaba') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: [invalid ? variations]
+PASS /?/ threw exception SyntaxError: Invalid regular expression: /?/: Nothing to repeat.
+
+Testing regexp: [invalid ( variations]
+PASS /(/ threw exception SyntaxError: Invalid regular expression: /(/: Unterminated group.
+PASS /a(/ threw exception SyntaxError: Invalid regular expression: /a(/: Unterminated group.
+
+Testing regexp: [invalid ) variations]
+PASS /)/ threw exception SyntaxError: Invalid regular expression: /)/: Unmatched ')'.
+PASS /a)/ threw exception SyntaxError: Invalid regular expression: /a)/: Unmatched ')'.
+
+Testing regexp: [invalid [ variations]
+PASS /[/ threw exception SyntaxError: Invalid regular expression: missing /.
+PASS /a[/ threw exception SyntaxError: Invalid regular expression: missing /.
+PASS /[b-a]/ threw exception SyntaxError: Invalid regular expression: /[b-a]/: Range out of order in character class.
+PASS /a[b-a]/ threw exception SyntaxError: Invalid regular expression: /a[b-a]/: Range out of order in character class.
+
+Testing regexp: /]/gm
+PASS regexp.test(']') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: /a]/gm
+PASS regexp.test('a]') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: /{/gm
+PASS regexp.test('{') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: /a{/gm
+PASS regexp.test('a{') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: /{a/gm
+PASS regexp.test('{a') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: /a{a/gm
+PASS regexp.test('a{a') is true
+PASS regexp.lastIndex is 3
+
+Testing regexp: /{1,/gm
+PASS regexp.test('{1,') is true
+PASS regexp.lastIndex is 3
+
+Testing regexp: /a{1,/gm
+PASS regexp.test('a{1,') is true
+PASS regexp.lastIndex is 4
+
+Testing regexp: /{1,a/gm
+PASS regexp.test('{1,a') is true
+PASS regexp.lastIndex is 4
+
+Testing regexp: /{1,0/gm
+PASS regexp.test('{1,0') is true
+PASS regexp.lastIndex is 4
+
+Testing regexp: /{1, 0}/gm
+PASS regexp.test('{1, 0}') is true
+PASS regexp.lastIndex is 6
+
+Testing regexp: /a{1, 0}/gm
+PASS regexp.test('a{1, 0}') is true
+PASS regexp.lastIndex is 7
+
+Testing regexp: /a{1,0/gm
+PASS regexp.test('a{1,0') is true
+PASS regexp.lastIndex is 5
+
+Testing regexp: /a{0}/gm
+PASS regexp.test('a') is true
+PASS regexp.lastIndex is 0
+PASS regexp.test('b') is true
+PASS regexp.lastIndex is 0
+
+Testing regexp: [invalid {} variations]
+PASS /{0}/ threw exception SyntaxError: Invalid regular expression: /{0}/: Nothing to repeat.
+PASS /{1,0}/ threw exception SyntaxError: Invalid regular expression: /{1,0}/: Nothing to repeat.
+PASS /a{1,0}/ threw exception SyntaxError: Invalid regular expression: /a{1,0}/: numbers out of order in {} quantifier..
+
+Testing regexp: /}/gm
+PASS regexp.test('}') is true
+PASS regexp.lastIndex is 1
+
+Testing regexp: /a}/gm
+PASS regexp.test('a}') is true
+PASS regexp.lastIndex is 2
+
+Testing regexp: /(?:)/gm
+PASS regexp.test('') is true
+PASS regexp.lastIndex is 0
+
+Testing regexp: /|/gm
+PASS regexp.test('|') is true
+PASS regexp.lastIndex is 0
+
+Testing regexp: /a|/gm
+PASS regexp.test('|') is true
+PASS regexp.lastIndex is 0
+PASS successfullyParsed is true
+
+TEST COMPLETE
+