| 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 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 importWrappingKey().then(function(result) { | 34 importWrappingKey().then(function(result) { |
| 35 wrappingKey = result; | 35 wrappingKey = result; |
| 36 return importKeyToWrap(); | 36 return importKeyToWrap(); |
| 37 }).then(function(result) { | 37 }).then(function(result) { |
| 38 key = result; | 38 key = result; |
| 39 wrapAlgorithm = {name: 'aes-cbc', iv: new Uint8Array(16)}; | 39 wrapAlgorithm = {name: 'aes-cbc', iv: new Uint8Array(16)}; |
| 40 | 40 |
| 41 return crypto.subtle.wrapKey('raw', key, wrappingKey, wrapAlgorithm); | 41 return crypto.subtle.wrapKey('raw', key, wrappingKey, wrapAlgorithm); |
| 42 }).then(failAndFinishJSTest, function(result) { | 42 }).then(failAndFinishJSTest, function(result) { |
| 43 error = result; | 43 logError(result); |
| 44 shouldBeNull("error"); | |
| 45 }).then(finishJSTest, failAndFinishJSTest); | 44 }).then(finishJSTest, failAndFinishJSTest); |
| 46 | 45 |
| 47 </script> | 46 </script> |
| 48 | 47 |
| 49 </body> | 48 </body> |
| 50 </html> | 49 </html> |
| OLD | NEW |