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

Side by Side Diff: LayoutTests/crypto/clone-aesKey.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
« no previous file with comments | « no previous file | LayoutTests/crypto/clone-aesKey-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 importedKey = results.importedKey; 47 importedKey = results.importedKey;
48 clonedKey = results.clonedKey; 48 clonedKey = results.clonedKey;
49 49
50 shouldEvaluateAs("importedKey.extraProperty", "hi"); 50 shouldEvaluateAs("importedKey.extraProperty", "hi");
51 shouldEvaluateAs("importedKey.type", "secret"); 51 shouldEvaluateAs("importedKey.type", "secret");
52 shouldEvaluateAs("importedKey.extractable", extractable); 52 shouldEvaluateAs("importedKey.extractable", extractable);
53 shouldEvaluateAs("importedKey.algorithm.name", algorithmName); 53 shouldEvaluateAs("importedKey.algorithm.name", algorithmName);
54 shouldEvaluateAs("importedKey.algorithm.length", importData.length * 8); 54 shouldEvaluateAs("importedKey.algorithm.length", importData.length * 8);
55 shouldEvaluateAs("importedKey.usages.join(',')", keyUsages.join(",")); 55 shouldEvaluateAs("importedKey.usages.join(',')", keyUsages.join(","));
56 56
57 shouldBeTrue("importedKey != clonedKey"); 57 shouldNotBe("importedKey", "clonedKey");
58 58
59 shouldBeUndefined("clonedKey.extraProperty"); 59 shouldBeUndefined("clonedKey.extraProperty");
60 shouldEvaluateAs("clonedKey.type", "secret"); 60 shouldEvaluateAs("clonedKey.type", "secret");
61 shouldEvaluateAs("clonedKey.extractable", extractable); 61 shouldEvaluateAs("clonedKey.extractable", extractable);
62 shouldEvaluateAs("clonedKey.algorithm.name", algorithmName); 62 shouldEvaluateAs("clonedKey.algorithm.name", algorithmName);
63 shouldEvaluateAs("clonedKey.algorithm.length", importData.length * 8); 63 shouldEvaluateAs("clonedKey.algorithm.length", importData.length * 8);
64 shouldEvaluateAs("clonedKey.usages.join(',')", keyUsages.join(",")); 64 shouldEvaluateAs("clonedKey.usages.join(',')", keyUsages.join(","));
65 65
66 logSerializedKey(importedKey); 66 logSerializedKey(importedKey);
67 67
(...skipping 15 matching lines...) Expand all
83 }); 83 });
84 }); 84 });
85 }); 85 });
86 86
87 lastPromise.then(finishJSTest, failAndFinishJSTest); 87 lastPromise.then(finishJSTest, failAndFinishJSTest);
88 88
89 </script> 89 </script>
90 90
91 </body> 91 </body>
92 </html> 92 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/crypto/clone-aesKey-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698