Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / crypto / subtle / resources / worker-infinite-loop-generateKey.js
blob971e19213efefa998907d4a91c736e484f381f47
1 importScripts('common.js');
3 function continuouslyGenerateRsaKey()
5     var extractable = false;
6     var usages = ['sign', 'verify'];
7     // Note that the modulus length is small.
8     var algorithm = {name: "RSASSA-PKCS1-v1_5", modulusLength: 512, publicExponent: hexStringToUint8Array("010001"), hash: {name: 'sha-1'}};
10     return crypto.subtle.generateKey(algorithm, extractable, usages).then(function(result) {
11         // Infinite recursion intentional!
12         return continuouslyGenerateRsaKey();
13     });
16 // Starts a Promise which continually generates new RSA keys.
17 var unusedPromise = continuouslyGenerateRsaKey();
19 // Inform the outer script that the worker started.
20 postMessage("Worker started");