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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 shouldEvaluateAs("importedKey.extraProperty", "hi"); | 52 shouldEvaluateAs("importedKey.extraProperty", "hi"); |
53 shouldEvaluateAs("importedKey.type", "private"); | 53 shouldEvaluateAs("importedKey.type", "private"); |
54 shouldEvaluateAs("importedKey.extractable", extractable); | 54 shouldEvaluateAs("importedKey.extractable", extractable); |
55 shouldEvaluateAs("importedKey.algorithm.name", algorithmName); | 55 shouldEvaluateAs("importedKey.algorithm.name", algorithmName); |
56 shouldEvaluateAs("importedKey.algorithm.modulusLength", keyData.modulusL
engthBits); | 56 shouldEvaluateAs("importedKey.algorithm.modulusLength", keyData.modulusL
engthBits); |
57 bytesShouldMatchHexString("importedKey.algorithm.publicExponent", keyDat
a.publicExponent, importedKey.algorithm.publicExponent); | 57 bytesShouldMatchHexString("importedKey.algorithm.publicExponent", keyDat
a.publicExponent, importedKey.algorithm.publicExponent); |
58 shouldEvaluateAs("importedKey.algorithm.hash.name", hashName); | 58 shouldEvaluateAs("importedKey.algorithm.hash.name", hashName); |
59 shouldEvaluateAs("importedKey.usages.join(',')", keyUsages.join(",")); | 59 shouldEvaluateAs("importedKey.usages.join(',')", keyUsages.join(",")); |
60 | 60 |
61 shouldBeTrue("importedKey != clonedKey"); | 61 shouldNotBe("importedKey", "clonedKey"); |
62 | 62 |
63 shouldBeUndefined("clonedKey.extraProperty"); | 63 shouldBeUndefined("clonedKey.extraProperty"); |
64 shouldEvaluateAs("clonedKey.type", "private"); | 64 shouldEvaluateAs("clonedKey.type", "private"); |
65 shouldEvaluateAs("clonedKey.extractable", extractable); | 65 shouldEvaluateAs("clonedKey.extractable", extractable); |
66 shouldEvaluateAs("clonedKey.algorithm.name", algorithmName); | 66 shouldEvaluateAs("clonedKey.algorithm.name", algorithmName); |
67 shouldEvaluateAs("clonedKey.algorithm.modulusLength", keyData.modulusLen
gthBits); | 67 shouldEvaluateAs("clonedKey.algorithm.modulusLength", keyData.modulusLen
gthBits); |
68 bytesShouldMatchHexString("clonedKey.algorithm.publicExponent", keyData.
publicExponent, clonedKey.algorithm.publicExponent); | 68 bytesShouldMatchHexString("clonedKey.algorithm.publicExponent", keyData.
publicExponent, clonedKey.algorithm.publicExponent); |
69 shouldEvaluateAs("clonedKey.algorithm.hash.name", hashName); | 69 shouldEvaluateAs("clonedKey.algorithm.hash.name", hashName); |
70 shouldEvaluateAs("clonedKey.usages.join(',')", keyUsages.join(",")); | 70 shouldEvaluateAs("clonedKey.usages.join(',')", keyUsages.join(",")); |
71 | 71 |
(...skipping 19 matching lines...) Expand all Loading... |
91 }); | 91 }); |
92 }); | 92 }); |
93 }); | 93 }); |
94 | 94 |
95 lastPromise.then(finishJSTest, failAndFinishJSTest); | 95 lastPromise.then(finishJSTest, failAndFinishJSTest); |
96 | 96 |
97 </script> | 97 </script> |
98 | 98 |
99 </body> | 99 </body> |
100 </html> | 100 </html> |
OLD | NEW |