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

Unified Diff: LayoutTests/crypto/abandon-crypto-operation2.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/crypto/abandon-crypto-operation2.html
diff --git a/LayoutTests/crypto/abandon-crypto-operation2.html b/LayoutTests/crypto/abandon-crypto-operation2.html
deleted file mode 100644
index 68558b990ef87abd759dcaf5a4e810add2ea4bd0..0000000000000000000000000000000000000000
--- a/LayoutTests/crypto/abandon-crypto-operation2.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../resources/js-test.js"></script>
-<script src="resources/common.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-
-<script>
- description("Tests cancelling of crypto operations when the context is destroyed.");
-
- // Start a worker thread which starts a LOT of expensive
- // webcrypto operations (generating RSA keys).
- //
- // Now from the main page try to generate an AES key.
- //
- // Lastly, the web worker closes itself. This should have the
- // effect of aborting all of the web crypto operations it had
- // started, and now the AES key generation will be able to complete.
- //
- // If the crypto tasks started by the web worker are NOT
- // cancelled (and are merely orphaned), then the test is going to
- // timeout.
- jsTestIsAsync = true;
-
- function startWorker() {
- return new Promise(function(resolve, reject) {
- var worker = new Worker("resources/worker-start-slow-operations.js");
- worker.onmessage = function(event)
- {
- debug(event.data);
- resolve();
- };
- worker.onerror = function(error)
- {
- debug(error.filename + ':' + error.lineno + ': ' + error.message);
- reject('worker failed');
- }
- });
- }
-
- function generateTestKey() {
- var algorithm = {name: "AES-CBC", length: 128};
- return crypto.subtle.generateKey(algorithm, true, ['encrypt']).then(function() {
- debug('Successfully generated AES-CBC key');
- });
- }
-
- startWorker().then(generateTestKey).then(finishJSTest, failAndFinishJSTest);
-</script>
-</body>
-</html>
« no previous file with comments | « LayoutTests/crypto/abandon-crypto-operation-expected.txt ('k') | LayoutTests/crypto/abandon-crypto-operation2-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698