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

Unified Diff: LayoutTests/crypto/resources/worker-infinite-loop-generateKey.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/crypto/resources/worker-infinite-loop-generateKey.js
diff --git a/LayoutTests/crypto/resources/worker-infinite-loop-generateKey.js b/LayoutTests/crypto/resources/worker-infinite-loop-generateKey.js
deleted file mode 100644
index 971e19213efefa998907d4a91c736e484f381f47..0000000000000000000000000000000000000000
--- a/LayoutTests/crypto/resources/worker-infinite-loop-generateKey.js
+++ /dev/null
@@ -1,20 +0,0 @@
-importScripts('common.js');
-
-function continuouslyGenerateRsaKey()
-{
- var extractable = false;
- var usages = ['sign', 'verify'];
- // Note that the modulus length is small.
- var algorithm = {name: "RSASSA-PKCS1-v1_5", modulusLength: 512, publicExponent: hexStringToUint8Array("010001"), hash: {name: 'sha-1'}};
-
- return crypto.subtle.generateKey(algorithm, extractable, usages).then(function(result) {
- // Infinite recursion intentional!
- return continuouslyGenerateRsaKey();
- });
-}
-
-// Starts a Promise which continually generates new RSA keys.
-var unusedPromise = continuouslyGenerateRsaKey();
-
-// Inform the outer script that the worker started.
-postMessage("Worker started");
« no previous file with comments | « LayoutTests/crypto/resources/subtle-crypto-concurrent.js ('k') | LayoutTests/crypto/resources/worker-start-slow-operations.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698