summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authoratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-24 05:14:30 +0000
committeratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-24 05:14:30 +0000
commit53d4e7dae39ef543467e4b6a04c3fc30814f29b4 (patch)
tree62507c08edeff6daab9d9333c599c7bffd7aa1e3 /webkit
parentf781782dd67077478e117c61dca4ea5eefce3544 (diff)
downloadchromium_src-53d4e7dae39ef543467e4b6a04c3fc30814f29b4.zip
chromium_src-53d4e7dae39ef543467e4b6a04c3fc30814f29b4.tar.gz
chromium_src-53d4e7dae39ef543467e4b6a04c3fc30814f29b4.tar.bz2
Un-reverting 26919, and disabling worker-cloneports since it is flaky.
Added missing layout tests along with associated rebaselinings. Updated DEPS to include common resource files needed by tests, and add APIs to ui_layout_test to allow specifying resource files to copy. Disabled non-working tests so we can enable worker_uitests on Mac/Linux. BUG=22174 TEST=worker_uitest Review URL: http://codereview.chromium.org/232001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27043 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/events/message-port-multi-expected.txt18
-rw-r--r--webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/worker-context-multi-port-expected.txt16
-rw-r--r--webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/worker-multi-port-expected.txt16
3 files changed, 50 insertions, 0 deletions
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/events/message-port-multi-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/events/message-port-multi-expected.txt
new file mode 100644
index 0000000..981eb92f
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/events/message-port-multi-expected.txt
@@ -0,0 +1,18 @@
+This test checks the various use cases around sending multiple ports through MessagePort.postMessage
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS channel.port1.postMessage("same port", [channel.port1]) threw exception Error: INVALID_STATE_ERR: DOM Exception 11.
+PASS channel.port1.postMessage("entangled port", [channel.port2]) threw exception Error: INVALID_STATE_ERR: DOM Exception 11.
+PASS channel.port1.postMessage("null port", [channel3.port1, null, channel3.port2]) threw exception Error: INVALID_STATE_ERR: DOM Exception 11.
+PASS channel.port1.postMessage("notAPort", [channel3.port1, {}, channel3.port2]) threw exception TypeError: MessagePortArray argument must contain only MessagePorts.
+PASS channel.port1.postMessage("notAnArray", channel3.port1) threw exception TypeError: MessagePortArray argument has no length attribute.
+PASS channel.port1.postMessage("notASequence", [{length: 3}]) threw exception TypeError: MessagePortArray argument must contain only MessagePorts.
+PASS event.ports is null when no port sent
+PASS event.ports is null when empty array sent
+PASS event.ports contains two ports when two ports sent
+PASS event.ports contains two ports when two ports re-sent after error
+
+TEST COMPLETE
+
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/worker-context-multi-port-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/worker-context-multi-port-expected.txt
new file mode 100644
index 0000000..e66270f
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/worker-context-multi-port-expected.txt
@@ -0,0 +1,16 @@
+This test checks the various use cases around sending multiple ports through WorkerGlobalScope.postMessage
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS event.ports is null when no port sent
+PASS event.ports is null when empty array sent
+PASS event.ports contains two ports when two ports sent
+PASS posting a null port did throw: Error: INVALID_STATE_ERR: DOM Exception 11
+PASS posting a non-port did throw: TypeError: MessagePortArray argument must contain only MessagePorts
+PASS event.ports contains two ports when two ports re-sent after error
+PASS posting a non-array did throw: TypeError: MessagePortArray argument has no length attribute
+PASS posting a non-sequence did throw: TypeError: MessagePortArray argument must contain only MessagePorts
+
+TEST COMPLETE
+
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/worker-multi-port-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/worker-multi-port-expected.txt
new file mode 100644
index 0000000..f11c74c
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/worker-multi-port-expected.txt
@@ -0,0 +1,16 @@
+This test checks the various use cases around sending multiple ports through Worker.postMessage
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS worker.postMessage("null port", [channel3.port1, null, channel3.port2]) threw exception Error: INVALID_STATE_ERR: DOM Exception 11.
+PASS worker.postMessage("notAPort", [channel3.port1, {}, channel3.port2]) threw exception TypeError: MessagePortArray argument must contain only MessagePorts.
+PASS worker.postMessage("notAnArray", channel3.port1) threw exception TypeError: MessagePortArray argument has no length attribute.
+PASS worker.postMessage("notASequence", [{length: 3}]) threw exception TypeError: MessagePortArray argument must contain only MessagePorts.
+PASS event.ports is null when no port sent
+PASS event.ports is null when empty array sent
+PASS event.ports contains two ports when two ports sent
+PASS event.ports contains two ports when two ports re-sent after error
+
+TEST COMPLETE
+