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

Unified Diff: LayoutTests/crypto/generateKey.html

Issue 24467004: [webcrypto] Remove MockWebCrypto. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove some unused params Created 7 years, 3 months 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/generateKey.html
diff --git a/LayoutTests/crypto/generateKey.html b/LayoutTests/crypto/generateKey.html
index ae1949211a71279f1939afe6e530c343d6908873..2162527bd3fa437bbc7a64f1a9136c2a1fcdedb4 100644
--- a/LayoutTests/crypto/generateKey.html
+++ b/LayoutTests/crypto/generateKey.html
@@ -11,8 +11,6 @@
<script>
description("Tests cypto.subtle.generateKey.");
-jsTestIsAsync = true;
-
extractable = true;
keyUsages = ['encrypt', 'decrypt'];
@@ -74,11 +72,13 @@ shouldThrow("crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength:
shouldThrow("crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, publicExponent: 10}, extractable , keyUsages)");
shouldThrow("crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, publicExponent: null}, extractable , keyUsages)");
+/* TODO(eroman): generateKey() is implemented yet.
abarth-chromium 2013/09/26 04:22:27 Can we delete this code rather than commenting it
eroman 2013/09/26 18:07:53 Done.
+
// Note that fractional numbers are truncated, so this length should be
// interpreted as 1024.
crypto.subtle.generateKey({name: 'aes-cbc', length: 1024.9}, extractable, ['decrypt', 'encrypt']).then(function(result) {
key = result;
- shouldBe("key.type", "'private'")
+ shouldBe("key.type", "'secret'")
shouldBe("key.extractable", "true")
shouldBe("key.algorithm.name", "'AES-CBC'")
shouldBe("key.algorithm.length", "1024")
@@ -87,7 +87,7 @@ crypto.subtle.generateKey({name: 'aes-cbc', length: 1024.9}, extractable, ['decr
return crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256' }}, false, ['sign']);
}).then(function(result) {
key = result;
- shouldBe("key.type", "'private'")
+ shouldBe("key.type", "'secret'")
shouldBe("key.extractable", "false")
shouldBe("key.algorithm.name", "'HMAC'")
shouldBe("key.algorithm.hash.name", "'SHA-256'")
@@ -97,7 +97,7 @@ crypto.subtle.generateKey({name: 'aes-cbc', length: 1024.9}, extractable, ['decr
return crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256' }, length:48 }, false, ['sign']);
}).then(function(result) {
key = result;
- shouldBe("key.type", "'private'")
+ shouldBe("key.type", "'secret'")
shouldBe("key.extractable", "false")
shouldBe("key.algorithm.name", "'HMAC'")
shouldBe("key.algorithm.hash.name", "'SHA-256'")
@@ -127,6 +127,7 @@ crypto.subtle.generateKey({name: 'aes-cbc', length: 1024.9}, extractable, ['decr
shouldBe("keyPair.publicKey.foo", "'bar'");
}).then(finishJSTest, failAndFinishJSTest);
+*/
</script>

Powered by Google App Engine
This is Rietveld 408576698