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

Side by Side Diff: LayoutTests/crypto/worker-promise-crash.html

Issue 273913002: Repro-case for http://crbug.com/371566 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
« no previous file with comments | « LayoutTests/crypto/worker-infinite-resolve-loop.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9
10 <script>
11 description("Tests starting up some workers, having them start Promises, and then exit");
12
13 jsTestIsAsync = true;
14
15 var allPromises = [];
16
17 var kNumWorkers = 5;
18
19 for (var i = 0; i < kNumWorkers; ++i) {
20 allPromises.push(new Promise(function(resolve, reject) {
21 var worker = new Worker("worker-infinite-resolve-loop.js");
22 worker.onmessage = function(event)
23 {
24 debug(event.data);
25 resolve();
26 };
27 }));
28 }
29
30 Promise.all(allPromises).then(finishJSTest);
31 </script>
32 </body>
33 </html>
OLDNEW
« no previous file with comments | « LayoutTests/crypto/worker-infinite-resolve-loop.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698