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

Side by Side Diff: LayoutTests/crypto/resources/worker-start-slow-operations.js

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
OLDNEW
(Empty)
1 function generateRsaKey()
2 {
3 var extractable = false;
4 var usages = ['sign', 'verify'];
5 var algorithm = {name: "RSASSA-PKCS1-v1_5", modulusLength: 512, publicExpone nt: new Uint8Array([1, 0, 1]), hash: {name: 'sha-1'}};
6
7 return crypto.subtle.generateKey(algorithm, extractable, usages).then(undefi ned, function(error) {
8 postMessage(error);
9 });
10 }
11
12 // Start many concurrent operations but don't do anything with the result, or
13 // even wait for them to complete.
14 for (var i = 0; i < 1000; ++i)
15 generateRsaKey();
16
17 // Inform the outer script that the worker started.
18 postMessage("Worker started");
19
20 close();
OLDNEW
« no previous file with comments | « LayoutTests/crypto/resources/worker-infinite-loop-generateKey.js ('k') | LayoutTests/crypto/rsa-export-key.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698