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 <script src="resources/keys.js"></script> |
6 </head> | 7 </head> |
7 <body> | 8 <body> |
8 <p id="description"></p> | 9 <p id="description"></p> |
9 <div id="console"></div> | 10 <div id="console"></div> |
10 | 11 |
11 <script> | 12 <script> |
12 description("Tests cypto.subtle.sign and crypto.subtle.verify"); | 13 description("Tests cypto.subtle.sign and crypto.subtle.verify"); |
13 | 14 |
14 // FIXME: This is only testing invalid parameters right now. Once the | 15 // FIXME: This is only testing invalid parameters right now. Once the |
15 // chromium-side implements the algorithms more interesting tests should be | 16 // chromium-side implements the algorithms more interesting tests should be |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 92 |
92 // Mismatch between the unwrappingKey's algorithm and unwrapAlgorithm. | 93 // Mismatch between the unwrappingKey's algorithm and unwrapAlgorithm. |
93 shouldRejectPromiseWithNull("crypto.subtle.unwrapKey('raw', wrappedKey, unwr
appingKey, aesCtrAlgorithm, unwrappedKeyAlgorithm, extractable, keyUsages)"); | 94 shouldRejectPromiseWithNull("crypto.subtle.unwrapKey('raw', wrappedKey, unwr
appingKey, aesCtrAlgorithm, unwrappedKeyAlgorithm, extractable, keyUsages)"); |
94 | 95 |
95 }).then(finishJSTest, failAndFinishJSTest); | 96 }).then(finishJSTest, failAndFinishJSTest); |
96 | 97 |
97 | 98 |
98 </script> | 99 </script> |
99 | 100 |
100 </body> | 101 </body> |
OLD | NEW |