summaryrefslogtreecommitdiffstats
path: root/webkit/data
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-22 19:02:01 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-22 19:02:01 +0000
commite4e61d9ee8853da84374317781a835861c3aafe8 (patch)
treecf5fbf49b520defa27c8385706e2c503dcf0848e /webkit/data
parent0c849446b658b3f26d40048221f8735045a64745 (diff)
downloadchromium_src-e4e61d9ee8853da84374317781a835861c3aafe8.zip
chromium_src-e4e61d9ee8853da84374317781a835861c3aafe8.tar.gz
chromium_src-e4e61d9ee8853da84374317781a835861c3aafe8.tar.bz2
Rebaselines the test
LayoutTests/fast/dom/Window/window-custom-prototype. This needs to be rebaselined as the test checks for a specific exception string. V8 returns 'Cyclic' where as KJS returns 'cyclic.' BUG=5725 TEST=none; this is a layout test change only. Review URL: http://codereview.chromium.org/15096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7360 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/data')
-rw-r--r--webkit/data/layout_tests/platform/chromium-linux/LayoutTests/fast/dom/Window/README6
-rw-r--r--webkit/data/layout_tests/platform/chromium-linux/LayoutTests/fast/dom/Window/window-custom-prototype-expected.txt21
-rw-r--r--webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/Window/README5
-rw-r--r--webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/Window/window-custom-prototype-expected.txt21
-rw-r--r--webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/Window/README6
-rw-r--r--webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/Window/window-custom-prototype-expected.txt21
6 files changed, 79 insertions, 1 deletions
diff --git a/webkit/data/layout_tests/platform/chromium-linux/LayoutTests/fast/dom/Window/README b/webkit/data/layout_tests/platform/chromium-linux/LayoutTests/fast/dom/Window/README
new file mode 100644
index 0000000..5f5d40e
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-linux/LayoutTests/fast/dom/Window/README
@@ -0,0 +1,6 @@
+This file documents why the various tests have been rebaselined.
+
+window-custom-property
+----------------------
+V8 uses the string 'Cyclic' compared to KJS's 'cyclic' for the
+exception, resulting in different test results.
diff --git a/webkit/data/layout_tests/platform/chromium-linux/LayoutTests/fast/dom/Window/window-custom-prototype-expected.txt b/webkit/data/layout_tests/platform/chromium-linux/LayoutTests/fast/dom/Window/window-custom-prototype-expected.txt
new file mode 100644
index 0000000..3058e6a
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-linux/LayoutTests/fast/dom/Window/window-custom-prototype-expected.txt
@@ -0,0 +1,21 @@
+Test what happens when you set the window's prototype to various values.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+FAIL __proto__ = window; __proto should throw Error: cyclic __proto__ value. Threw exception Error: Cyclic __proto__ value.
+FAIL __proto__ = chainPointingBackToWindow; __proto__ should throw Error: cyclic __proto__ value. Threw exception Error: Cyclic __proto__ value.
+PASS __proto__ = 1; __proto__ is originalWindowPrototype
+PASS __proto__ = 'a string'; __proto__ is originalWindowPrototype
+PASS __proto__ = anotherObject; __proto__ is anotherObject
+FAIL anotherObject.__proto__ = window; __proto__ should throw Error: cyclic __proto__ value. Threw exception Error: Cyclic __proto__ value.
+PASS __proto__ = null; __proto__ is null
+PASS __proto__ = 1; __proto__ is null
+PASS __proto__ = 'a string'; __proto__ is null
+PASS __proto__ = anotherObject; __proto__ is anotherObject
+PASS __proto__ = originalWindowPrototype; __proto__ is originalWindowPrototype
+PASS anotherObject.__proto__ = window; anotherObject.__proto__ is window
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/Window/README b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/Window/README
index 51ffb44..7c31675 100644
--- a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/Window/README
+++ b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/Window/README
@@ -15,6 +15,11 @@ It is a time-sensitive test. Chrome passes all tests, Safari failed some,
so the output expects some failures. Firefox sometimes passes all tests
and sometimes fails some. Use Chrome's output as the baseline.
+window-custom-property
+----------------------
+V8 uses the string 'Cyclic' compared to KJS's 'cyclic' for the
+exception, resulting in different test results.
+
window-property-shadowing
get-set-properties
-------------------------
diff --git a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/Window/window-custom-prototype-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/Window/window-custom-prototype-expected.txt
new file mode 100644
index 0000000..3058e6a
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/Window/window-custom-prototype-expected.txt
@@ -0,0 +1,21 @@
+Test what happens when you set the window's prototype to various values.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+FAIL __proto__ = window; __proto should throw Error: cyclic __proto__ value. Threw exception Error: Cyclic __proto__ value.
+FAIL __proto__ = chainPointingBackToWindow; __proto__ should throw Error: cyclic __proto__ value. Threw exception Error: Cyclic __proto__ value.
+PASS __proto__ = 1; __proto__ is originalWindowPrototype
+PASS __proto__ = 'a string'; __proto__ is originalWindowPrototype
+PASS __proto__ = anotherObject; __proto__ is anotherObject
+FAIL anotherObject.__proto__ = window; __proto__ should throw Error: cyclic __proto__ value. Threw exception Error: Cyclic __proto__ value.
+PASS __proto__ = null; __proto__ is null
+PASS __proto__ = 1; __proto__ is null
+PASS __proto__ = 'a string'; __proto__ is null
+PASS __proto__ = anotherObject; __proto__ is anotherObject
+PASS __proto__ = originalWindowPrototype; __proto__ is originalWindowPrototype
+PASS anotherObject.__proto__ = window; anotherObject.__proto__ is window
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/Window/README b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/Window/README
index 51ffb44..9cb82ae 100644
--- a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/Window/README
+++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/Window/README
@@ -15,10 +15,14 @@ It is a time-sensitive test. Chrome passes all tests, Safari failed some,
so the output expects some failures. Firefox sometimes passes all tests
and sometimes fails some. Use Chrome's output as the baseline.
+window-custom-property
+----------------------
+V8 uses the string 'Cyclic' compared to KJS's 'cyclic' for the
+exception, resulting in different test results.
+
window-property-shadowing
get-set-properties
-------------------------
For security reasons, we do not allow window.top to be shadowed. This
is because Flash accesses top.location and allowing the user to shadow
top.location might therefore break Flash security checks.
-
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/Window/window-custom-prototype-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/Window/window-custom-prototype-expected.txt
new file mode 100644
index 0000000..3058e6a
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/Window/window-custom-prototype-expected.txt
@@ -0,0 +1,21 @@
+Test what happens when you set the window's prototype to various values.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+FAIL __proto__ = window; __proto should throw Error: cyclic __proto__ value. Threw exception Error: Cyclic __proto__ value.
+FAIL __proto__ = chainPointingBackToWindow; __proto__ should throw Error: cyclic __proto__ value. Threw exception Error: Cyclic __proto__ value.
+PASS __proto__ = 1; __proto__ is originalWindowPrototype
+PASS __proto__ = 'a string'; __proto__ is originalWindowPrototype
+PASS __proto__ = anotherObject; __proto__ is anotherObject
+FAIL anotherObject.__proto__ = window; __proto__ should throw Error: cyclic __proto__ value. Threw exception Error: Cyclic __proto__ value.
+PASS __proto__ = null; __proto__ is null
+PASS __proto__ = 1; __proto__ is null
+PASS __proto__ = 'a string'; __proto__ is null
+PASS __proto__ = anotherObject; __proto__ is anotherObject
+PASS __proto__ = originalWindowPrototype; __proto__ is originalWindowPrototype
+PASS anotherObject.__proto__ = window; anotherObject.__proto__ is window
+PASS successfullyParsed is true
+
+TEST COMPLETE
+