Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: LayoutTests/crypto/clone-rsaHashedKey-private.html

Issue 268653004: [refactor] Replace shouldBeTrue("a != b") with shouldNotBe("a", "b") in existing crypto tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/crypto/clone-hmacKey-expected.txt ('k') | LayoutTests/crypto/clone-rsaHashedKey-private-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698