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

Side by Side Diff: LayoutTests/crypto/clone-rsaKey-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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 shouldEvaluateAs("importedKey.extraProperty", "hi"); 51 shouldEvaluateAs("importedKey.extraProperty", "hi");
52 shouldEvaluateAs("importedKey.type", "private"); 52 shouldEvaluateAs("importedKey.type", "private");
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", "private"); 63 shouldEvaluateAs("clonedKey.type", "private");
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/crypto/clone-rsaHashedKey-public-expected.txt ('k') | LayoutTests/crypto/clone-rsaKey-private-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698