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

Side by Side Diff: LayoutTests/crypto/exportKey.html

Issue 24467004: [webcrypto] Remove MockWebCrypto. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/crypto/digest-expected.txt ('k') | LayoutTests/crypto/exportKey-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../fast/js/resources/js-test-pre.js"></script> 4 <script src="../fast/js/resources/js-test-pre.js"></script>
5 <script src="resources/common.js"></script> 5 <script src="resources/common.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <p id="description"></p> 8 <p id="description"></p>
9 <div id="console"></div> 9 <div id="console"></div>
10 10
(...skipping 10 matching lines...) Expand all
21 shouldThrow("crypto.subtle.exportKey(null, keys.aesCbcJustDecrypt)"); 21 shouldThrow("crypto.subtle.exportKey(null, keys.aesCbcJustDecrypt)");
22 shouldThrow("crypto.subtle.exportKey('invalid', keys.aesCbcJustDecrypt)"); 22 shouldThrow("crypto.subtle.exportKey('invalid', keys.aesCbcJustDecrypt)");
23 23
24 // Invalid keys 24 // Invalid keys
25 shouldThrow("crypto.subtle.exportKey('raw', null)"); 25 shouldThrow("crypto.subtle.exportKey('raw', null)");
26 shouldThrow("crypto.subtle.exportKey('raw', 3)"); 26 shouldThrow("crypto.subtle.exportKey('raw', 3)");
27 27
28 shouldBe("keys.aesCbcJustDecrypt.extractable", "false") 28 shouldBe("keys.aesCbcJustDecrypt.extractable", "false")
29 shouldThrow("crypto.subtle.exportKey('raw', keys.aesCbcJustDecrypt)"); 29 shouldThrow("crypto.subtle.exportKey('raw', keys.aesCbcJustDecrypt)");
30 30
31 return crypto.subtle.exportKey('raw', keys.hmacSha1); 31 // TODO(eroman): exportKey() is not implemented.
32 }).then(function(result) {
33 keyData = result;
34 shouldBe("keyData.byteLength", "3");
35
36 return crypto.subtle.exportKey('pkcs8', keys.hmacSha1);
37 }).then(function(result) {
38 keyData = result;
39 shouldBe("keyData.byteLength", "5");
40 }).then(finishJSTest, failAndFinishJSTest); 32 }).then(finishJSTest, failAndFinishJSTest);
41 33
42 </script> 34 </script>
43 35
44 <script src="../fast/js/resources/js-test-post.js"></script> 36 <script src="../fast/js/resources/js-test-post.js"></script>
45 </body> 37 </body>
46 </html> 38 </html>
OLDNEW
« no previous file with comments | « LayoutTests/crypto/digest-expected.txt ('k') | LayoutTests/crypto/exportKey-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698