summaryrefslogtreecommitdiffstats
path: root/webkit/data
diff options
context:
space:
mode:
authoratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 17:37:38 +0000
committeratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 17:37:38 +0000
commit1945d3be2f14154c46a3820d5c48a57cfbec7e8f (patch)
tree65f683b4b771ed824f7723673730f84fc8cd53da /webkit/data
parent37f929fe4c9139012cc98cf9694b4b4eda68d0ac (diff)
downloadchromium_src-1945d3be2f14154c46a3820d5c48a57cfbec7e8f.zip
chromium_src-1945d3be2f14154c46a3820d5c48a57cfbec7e8f.tar.gz
chromium_src-1945d3be2f14154c46a3820d5c48a57cfbec7e8f.tar.bz2
Turned on shared worker tests and added test expectations.
Updated worker_uitests to set the enable-shared-worker flag and run the shared worker tests. Several tests will remain disabled still sharing is working. BUG=26899 TEST=this is all tests Review URL: http://codereview.chromium.org/372049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31566 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/data')
-rw-r--r--webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/shared-worker-constructor-expected.txt9
-rw-r--r--webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/shared-worker-location-expected.txt15
-rw-r--r--webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/shared-worker-script-error-expected.txt6
-rw-r--r--webkit/data/layout_tests/platform/chromium-win/LayoutTests/http/tests/workers/shared-worker-importScripts-expected.txt44
4 files changed, 74 insertions, 0 deletions
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/shared-worker-constructor-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/shared-worker-constructor-expected.txt
new file mode 100644
index 0000000..b1ba1c1
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/shared-worker-constructor-expected.txt
@@ -0,0 +1,9 @@
+Test SharedWorker constructor functionality. Should print a series of PASS messages, followed with DONE.
+
+PASS: toString exception propagated correctly.
+PASS: trying to create workers recursively resulted in an exception (RangeError: Maximum call stack size exceeded)
+PASS: invoking SharedWorker constructor without arguments resulted in an exception (SyntaxError: Not enough arguments)
+PASS: invoking SharedWorker constructor without name did not result in an exception
+PASS: SharedWorker constructor succeeded: [object SharedWorker]
+DONE
+
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/shared-worker-location-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/shared-worker-location-expected.txt
new file mode 100644
index 0000000..77d8a80
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/shared-worker-location-expected.txt
@@ -0,0 +1,15 @@
+Test WorkerLocation properties.
+
+WorkerLocation: function WorkerLocation() { [native code] }
+typeof location: object
+location: file:<...>/fast/workers/resources/shared-worker-common.js
+location.href: file:<...>/fast/workers/resources/shared-worker-common.js
+location.protocol: file:
+location.host:
+location.hostname:
+location.port:
+location.pathname: <...>/fast/workers/resources/shared-worker-common.js
+location.search:
+location.hash:
+DONE
+
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/shared-worker-script-error-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/shared-worker-script-error-expected.txt
new file mode 100644
index 0000000..1d36a2c
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/workers/shared-worker-script-error-expected.txt
@@ -0,0 +1,6 @@
+Test SharedWorker script error handling functionality. Should print a series of PASS messages, followed with DONE.
+
+SUCCESS: unhandled error generated
+SUCCESS: error handled via onerror: Uncaught ReferenceError: generateError is not defined
+DONE
+
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/http/tests/workers/shared-worker-importScripts-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/http/tests/workers/shared-worker-importScripts-expected.txt
new file mode 100644
index 0000000..e3b2b37
--- /dev/null
+++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/http/tests/workers/shared-worker-importScripts-expected.txt
@@ -0,0 +1,44 @@
+Test importScripts for SharedWorkers.
+
+Test started.
+PASS: importScripts(), exists, is a function, and doesn't throw when not given any arguments
+Loaded message from different origin
+PASS: executed script from different origin
+Loaded message from different origin
+PASS: executed script from different origin through a redirect
+Testing single argument:
+Loaded resource 1
+PASS: loaded first source
+Testing multiple arguments:
+Loaded resource 1
+Loaded resource 2
+PASS: Both sources loaded and executed.
+Testing multiple arguments (different order):
+Resource 2 loaded before resource 1
+Loaded resource 2
+Loaded resource 1
+PASS: Both sources loaded and executed.
+Testing multiple arguments, with different origin for one argument:
+Loaded resource 1
+Loaded message from different origin
+Loaded resource 2
+PASS: all resources executed.
+Loaded resource 1
+PASS: Threw Error: NETWORK_ERR: XMLHttpRequest Exception 101 when load failed
+PASS: some resources were loaded despite the network error
+Loaded resource 1
+PASS: Threw SyntaxError: Unexpected identifier when encountering a syntax error in imported script
+PASS: some resources were loaded despite the presence of a syntax error
+Testing multiple arguments, with first resource throwing an exception:
+Loaded resource 1
+First resource throwing an exception
+PASS: Propagated 'Thrown by first resource' from script
+PASS: First resource was executed, and second resource was not
+Testing multiple arguments, with second resource throwing an exception:
+Loaded resource 1
+Loaded resource 2
+Second resource throwing an exception
+PASS: Propagated 'Thrown by second resource' from script
+PASS: Both scripts were executed
+DONE
+