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

Side by Side Diff: LayoutTests/crypto/abandon-crypto-operation.html

Issue 806913006: [WebCrypto] Move LayoutTests from crypto to crypto/subtle (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update path for deserialize legacy tests Created 6 years 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/crypto/abandon-crypto-operation-expected.txt » ('j') | 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 <script src="resources/common.js"></script>
6 </head>
7 <body>
8 <p id="description"></p>
9 <div id="console"></div>
10
11 <script>
12 description("Tests abandoning a crypto operation.");
13
14 // This test starts up a couple worker threads, which continuously generate
15 // RSA keys. It waits until each of the worker threads have started
16 // running, and then exits.
17 //
18 // The consequence is that once the test finishes, there should be
19 // outstanding crypto operations on the worker threads. This will exercise
20 // the cancellation/abandonment logic for these Promises.
21
22 jsTestIsAsync = true;
23
24 var allPromises = [];
25
26 var kNumWorkers = 3;
27
28 for (var i = 0; i < kNumWorkers; ++i) {
29 allPromises.push(new Promise(function(resolve, reject) {
30 var worker = new Worker("resources/worker-infinite-loop-generateKey. js");
31 worker.onmessage = function(event)
32 {
33 debug(event.data);
34 resolve();
35 };
36 }));
37 }
38
39 Promise.all(allPromises).then(finishJSTest);
40 </script>
41 </body>
42 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/crypto/abandon-crypto-operation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698