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

Unified Diff: LayoutTests/crypto/importKey-deserialized.html

Issue 770363002: [WebCrypto] Crypto tests updated to use KeyUsage (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « LayoutTests/crypto/import-jwk.html ('k') | LayoutTests/crypto/importKey-deserialized-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/importKey-deserialized.html
diff --git a/LayoutTests/crypto/importKey-deserialized.html b/LayoutTests/crypto/importKey-deserialized.html
new file mode 100644
index 0000000000000000000000000000000000000000..7f0de8020fa7342a465d00ba51bf7696556dee21
--- /dev/null
+++ b/LayoutTests/crypto/importKey-deserialized.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+<script src="resources/common.js"></script>
+</head>
+<body>
+<script>
+
+description("Check already imported key, with empty usage can be deserialized.");
eroman 2014/12/16 20:23:53 "Check that an already imported key with empty usa
Habib Virji 2014/12/17 11:54:36 Done.
+jsTestIsAsync = true;
eroman 2014/12/16 20:23:53 This test can be synchronous. Take a look at clone
Habib Virji 2014/12/17 11:54:36 Done.
+
+var importedKey = "ff073f004b010110011030112233445566778899aabbccddeeff";
+var deserializedBuffer = internals.deserializeBuffer(hexStringToUint8Array(importedKey).buffer);
+shouldBe("deserializedBuffer.usages", "[]");
eroman 2014/12/16 20:23:53 Please add some other assertions for the key type,
Habib Virji 2014/12/17 11:54:36 Done.
+
+finishJSTest();
eroman 2014/12/16 20:23:53 If the test is made synchronous this is not needed
Habib Virji 2014/12/17 11:54:36 Done.
+
+</script>
+</body>
+</html>
+
« no previous file with comments | « LayoutTests/crypto/import-jwk.html ('k') | LayoutTests/crypto/importKey-deserialized-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698