OLD | NEW |
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 Loading... |
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> |
OLD | NEW |