diff options
author | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-23 14:55:37 +0000 |
---|---|---|
committer | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-23 14:55:37 +0000 |
commit | 6238f3032c4085318b4a092b9a0fec29bb37b728 (patch) | |
tree | 634a025fd225e02851d50f82a447e282e084a5d5 /webkit/data | |
parent | f7da4b786f75d9df469111b09e2a4c679a0c3a47 (diff) | |
download | chromium_src-6238f3032c4085318b4a092b9a0fec29bb37b728.zip chromium_src-6238f3032c4085318b4a092b9a0fec29bb37b728.tar.gz chromium_src-6238f3032c4085318b4a092b9a0fec29bb37b728.tar.bz2 |
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/211051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26919 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/data')
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 + |