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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <body> 1 <body>
2 <p>Test worker thread stack usage. Should not crash.</p> 2 <p>Test CustomEvents on workers. Should print "SUCCESS".</p>
3 <div id=result></div> 3 <div id=result></div>
4 <script> 4 <script>
5 function log(message) 5 function log(message)
6 { 6 {
7 document.getElementById("result").innerHTML += message + "<br>"; 7 document.getElementById("result").innerHTML += message + "<br>";
8 } 8 }
9 9
10 if (window.testRunner) { 10 if (window.testRunner) {
11 testRunner.dumpAsText(); 11 testRunner.dumpAsText();
12 testRunner.waitUntilDone(); 12 testRunner.waitUntilDone();
13 } 13 }
14 14
15 var worker = new Worker('resources/use-machine-stack.js'); 15 var worker = new Worker('resources/worker-custom-event.js');
16 worker.postMessage("");
16 worker.onmessage = function(evt) { 17 worker.onmessage = function(evt) {
17 log("PASS (" + evt.data + ")"); 18 log(evt.data);
18 if (window.testRunner) 19 if (window.testRunner)
19 testRunner.notifyDone(); 20 testRunner.notifyDone();
21
20 } 22 }
21 </script> 23 </script>
22 </body> 24 </body>
23 </html> 25 </html>
OLDNEW
« 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