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 <script src="resources/keys.js"></script> |
7 </head> | 7 </head> |
8 <body> | 8 <body> |
9 <p id="description"></p> | 9 <p id="description"></p> |
10 <div id="console"></div> | 10 <div id="console"></div> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 shouldEvaluateAs("importedKey.extraProperty", "hi"); | 51 shouldEvaluateAs("importedKey.extraProperty", "hi"); |
52 shouldEvaluateAs("importedKey.type", "public"); | 52 shouldEvaluateAs("importedKey.type", "public"); |
53 shouldEvaluateAs("importedKey.extractable", extractable); | 53 shouldEvaluateAs("importedKey.extractable", extractable); |
54 shouldEvaluateAs("importedKey.algorithm.name", algorithmName); | 54 shouldEvaluateAs("importedKey.algorithm.name", algorithmName); |
55 shouldEvaluateAs("importedKey.algorithm.modulusLength", keyData.modulusL
engthBits); | 55 shouldEvaluateAs("importedKey.algorithm.modulusLength", keyData.modulusL
engthBits); |
56 bytesShouldMatchHexString("importedKey.algorithm.publicExponent", keyDat
a.publicExponent, importedKey.algorithm.publicExponent); | 56 bytesShouldMatchHexString("importedKey.algorithm.publicExponent", keyDat
a.publicExponent, importedKey.algorithm.publicExponent); |
57 shouldBeUndefined("importedKey.algorithm.hash"); | 57 shouldBeUndefined("importedKey.algorithm.hash"); |
58 shouldEvaluateAs("importedKey.usages.join(',')", keyUsages.join(",")); | 58 shouldEvaluateAs("importedKey.usages.join(',')", keyUsages.join(",")); |
59 | 59 |
60 shouldBeTrue("importedKey != clonedKey"); | 60 shouldNotBe("importedKey", "clonedKey"); |
61 | 61 |
62 shouldBeUndefined("clonedKey.extraProperty"); | 62 shouldBeUndefined("clonedKey.extraProperty"); |
63 shouldEvaluateAs("clonedKey.type", "public"); | 63 shouldEvaluateAs("clonedKey.type", "public"); |
64 shouldEvaluateAs("clonedKey.extractable", extractable); | 64 shouldEvaluateAs("clonedKey.extractable", extractable); |
65 shouldEvaluateAs("clonedKey.algorithm.name", algorithmName); | 65 shouldEvaluateAs("clonedKey.algorithm.name", algorithmName); |
66 shouldEvaluateAs("clonedKey.algorithm.modulusLength", keyData.modulusLen
gthBits); | 66 shouldEvaluateAs("clonedKey.algorithm.modulusLength", keyData.modulusLen
gthBits); |
67 bytesShouldMatchHexString("clonedKey.algorithm.publicExponent", keyData.
publicExponent, clonedKey.algorithm.publicExponent); | 67 bytesShouldMatchHexString("clonedKey.algorithm.publicExponent", keyData.
publicExponent, clonedKey.algorithm.publicExponent); |
68 shouldBeUndefined("clonedKey.algorithm.hash"); | 68 shouldBeUndefined("clonedKey.algorithm.hash"); |
69 shouldEvaluateAs("clonedKey.usages.join(',')", keyUsages.join(",")); | 69 shouldEvaluateAs("clonedKey.usages.join(',')", keyUsages.join(",")); |
70 | 70 |
(...skipping 17 matching lines...) Expand all Loading... |
88 }); | 88 }); |
89 }); | 89 }); |
90 }); | 90 }); |
91 | 91 |
92 lastPromise.then(finishJSTest, failAndFinishJSTest); | 92 lastPromise.then(finishJSTest, failAndFinishJSTest); |
93 | 93 |
94 </script> | 94 </script> |
95 | 95 |
96 </body> | 96 </body> |
97 </html> | 97 </html> |
OLD | NEW |