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

Side by Side Diff: LayoutTests/crypto/clone-hmacKey.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 </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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 clonedKey = results.clonedKey; 50 clonedKey = results.clonedKey;
51 51
52 shouldEvaluateAs("importedKey.extraProperty", "hi"); 52 shouldEvaluateAs("importedKey.extraProperty", "hi");
53 shouldEvaluateAs("importedKey.type", "secret"); 53 shouldEvaluateAs("importedKey.type", "secret");
54 shouldEvaluateAs("importedKey.extractable", extractable); 54 shouldEvaluateAs("importedKey.extractable", extractable);
55 shouldEvaluateAs("importedKey.algorithm.name", "HMAC"); 55 shouldEvaluateAs("importedKey.algorithm.name", "HMAC");
56 shouldEvaluateAs("importedKey.algorithm.length", importData.length * 8); 56 shouldEvaluateAs("importedKey.algorithm.length", importData.length * 8);
57 shouldEvaluateAs("importedKey.algorithm.hash.name", hashName); 57 shouldEvaluateAs("importedKey.algorithm.hash.name", hashName);
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", "secret"); 63 shouldEvaluateAs("clonedKey.type", "secret");
64 shouldEvaluateAs("clonedKey.extractable", extractable); 64 shouldEvaluateAs("clonedKey.extractable", extractable);
65 shouldEvaluateAs("clonedKey.algorithm.name", "HMAC"); 65 shouldEvaluateAs("clonedKey.algorithm.name", "HMAC");
66 shouldEvaluateAs("clonedKey.algorithm.length", importData.length * 8); 66 shouldEvaluateAs("clonedKey.algorithm.length", importData.length * 8);
67 shouldEvaluateAs("clonedKey.algorithm.hash.name", hashName); 67 shouldEvaluateAs("clonedKey.algorithm.hash.name", hashName);
68 shouldEvaluateAs("clonedKey.usages.join(',')", keyUsages.join(",")); 68 shouldEvaluateAs("clonedKey.usages.join(',')", keyUsages.join(","));
69 69
70 logSerializedKey(importedKey); 70 logSerializedKey(importedKey);
(...skipping 16 matching lines...) Expand all
87 }); 87 });
88 }); 88 });
89 }); 89 });
90 90
91 lastPromise.then(finishJSTest, failAndFinishJSTest); 91 lastPromise.then(finishJSTest, failAndFinishJSTest);
92 92
93 </script> 93 </script>
94 94
95 </body> 95 </body>
96 </html> 96 </html>
OLDNEW
« no previous file with comments | « LayoutTests/crypto/clone-aesKey-expected.txt ('k') | LayoutTests/crypto/clone-hmacKey-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698