Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: LayoutTests/fast/workers/worker-custom-event.html

Issue 946833004: Reland of "Expose events in workers as per latest DOM specification" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/workers/worker-custom-event.html
diff --git a/LayoutTests/fast/workers/use-machine-stack.html b/LayoutTests/fast/workers/worker-custom-event.html
similarity index 67%
copy from LayoutTests/fast/workers/use-machine-stack.html
copy to LayoutTests/fast/workers/worker-custom-event.html
index ac446985f3da2b5d75b44581091b7a98a88d1ecc..b7e8e08af1791531e7ba0ad8a09554064e22db22 100644
--- a/LayoutTests/fast/workers/use-machine-stack.html
+++ b/LayoutTests/fast/workers/worker-custom-event.html
@@ -1,5 +1,5 @@
<body>
-<p>Test worker thread stack usage. Should not crash.</p>
+<p>Test CustomEvents on workers. Should print "SUCCESS".</p>
<div id=result></div>
<script>
function log(message)
@@ -12,11 +12,13 @@ if (window.testRunner) {
testRunner.waitUntilDone();
}
-var worker = new Worker('resources/use-machine-stack.js');
+var worker = new Worker('resources/worker-custom-event.js');
+worker.postMessage("");
worker.onmessage = function(evt) {
- log("PASS (" + evt.data + ")");
+ log(evt.data);
if (window.testRunner)
testRunner.notifyDone();
+
}
</script>
</body>
« no previous file with comments | « LayoutTests/fast/workers/resources/worker-custom-event.js ('k') | LayoutTests/fast/workers/worker-custom-event-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698