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

Unified Diff: LayoutTests/crypto/encrypt-decrypt.html

Issue 179353002: [webcrypto] Add the KeyAlgorithm interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: LayoutTests/crypto/encrypt-decrypt.html
diff --git a/LayoutTests/crypto/encrypt-decrypt.html b/LayoutTests/crypto/encrypt-decrypt.html
index 89923ea1b7c3e2ac2b2c56c4234b71280c91287e..74f47866e1f9105bb66968ddc7cf844dafefa7bc 100644
--- a/LayoutTests/crypto/encrypt-decrypt.html
+++ b/LayoutTests/crypto/encrypt-decrypt.html
@@ -88,6 +88,7 @@ function runSuccessTestCase(testCase)
shouldBe("tmpKey.type", "'secret'");
shouldBe("tmpKey.extractable", "false");
shouldBe("tmpKey.algorithm.name", "'AES-CBC'");
+ shouldBe("tmpKey.algorithm.length", (keyData.byteLength * 8).toString());
shouldBe("tmpKey.usages.join(',')", "'decrypt,encrypt'");
// (2) Encrypt.
« no previous file with comments | « no previous file | LayoutTests/crypto/encrypt-decrypt-expected.txt » ('j') | Source/modules/crypto/AesKeyAlgorithm.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698