OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.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 |
11 <script> | 11 <script> |
12 description("Tests that unwrapping keys must have the 'unwrapKey' usage."); | 12 description("Tests that unwrapping keys must have the 'unwrapKey' usage."); |
13 | 13 |
14 jsTestIsAsync = true; | 14 jsTestIsAsync = true; |
(...skipping 17 matching lines...) Expand all Loading... |
32 | 32 |
33 return crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, unwrapAlgor
ithm, unwrappedKeyAlgorithm, extractable, keyUsages); | 33 return crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, unwrapAlgor
ithm, unwrappedKeyAlgorithm, extractable, keyUsages); |
34 }).then(failAndFinishJSTest, function(result) { | 34 }).then(failAndFinishJSTest, function(result) { |
35 logError(result); | 35 logError(result); |
36 }).then(finishJSTest, failAndFinishJSTest); | 36 }).then(finishJSTest, failAndFinishJSTest); |
37 | 37 |
38 </script> | 38 </script> |
39 | 39 |
40 </body> | 40 </body> |
41 </html> | 41 </html> |
OLD | NEW |