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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/workers/semantics/multiple-workers/002.html

Issue 2418853003: Worker: Import "imported/wpt/workers" tests (Retry) (Closed)
Patch Set: rebase Created 4 years, 2 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
OLDNEW
(Empty)
1 <!--
2 postMessage(1);
3 /*
4 -->
5 <!doctype html>
6 <title>creating 3 sibling dedicated workers</title>
7 <script src="/resources/testharness.js"></script>
8 <script src="/resources/testharnessreport.js"></script>
9 <div id=log></div>
10 <script>
11 async_test(function(t) {
12 var w1 = new Worker('#');
13 var w2 = new Worker('#');
14 var w3 = new Worker('#');
15 var got = [false, false, false];
16 var check_done = t.step_func(function() {
17 if (got.every(function(x) {return x})) {
18 t.done();
19 }
20 });
21 w1.onmessage = t.step_func(function(e) {got[0] = true; check_done()});
22 w2.onmessage = t.step_func(function(e) {got[1] = true; check_done()});
23 w3.onmessage = t.step_func(function(e) {got[2] = true; check_done()});
24 });
25 </script>
26 <!--
27 */
28 //-->
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698