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

Unified Diff: LayoutTests/crypto/exportKey.html

Issue 179353002: [webcrypto] Add the KeyAlgorithm interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase yet again (another conflict) Created 6 years, 10 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
« no previous file with comments | « LayoutTests/crypto/encrypt-decrypt-expected.txt ('k') | LayoutTests/crypto/exportKey-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/exportKey.html
diff --git a/LayoutTests/crypto/exportKey.html b/LayoutTests/crypto/exportKey.html
index f5d6a932ea15b1295bbee99b0d820be08e9a051e..314ef16af2b22b433abab5bfc505f63908509f3b 100644
--- a/LayoutTests/crypto/exportKey.html
+++ b/LayoutTests/crypto/exportKey.html
@@ -28,7 +28,13 @@ addTask(importTestKeys().then(function(result) {
shouldBe("keys.aesCbcJustDecrypt.extractable", "false")
shouldRejectPromiseWithNull("crypto.subtle.exportKey('raw', keys.aesCbcJustDecrypt)");
- // TODO(eroman): exportKey() is not implemented.
+ return crypto.subtle.exportKey('raw', keys.aesCbc);
+}).then(function(result) {
+ bytesShouldMatchHexString("Key bytes", "3136206279746573206f66206b657921", result);
+
+ return crypto.subtle.exportKey('spki', keys.rsaSsaSha1Public);
+}).then(function(result) {
+ bytesShouldMatchHexString("Key bytes", kPublicKeySpkiDerHex, result);
}));
completeTestWhenAllTasksDone();
« no previous file with comments | « LayoutTests/crypto/encrypt-decrypt-expected.txt ('k') | LayoutTests/crypto/exportKey-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698