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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 <script src="resources/common.js"></script>
6 </head>
7 <body>
8 <script>
9
10 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.
11 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.
12
13 var importedKey = "ff073f004b010110011030112233445566778899aabbccddeeff";
14 var deserializedBuffer = internals.deserializeBuffer(hexStringToUint8Array(impor tedKey).buffer);
15 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.
16
17 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.
18
19 </script>
20 </body>
21 </html>
22
OLDNEW
« 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