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

Side by Side Diff: LayoutTests/crypto/subtle/resources/common.js

Issue 806913006: [WebCrypto] Move LayoutTests from crypto to crypto/subtle (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update path for deserialize legacy tests Created 6 years 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
OLDNEW
1 function logError(error) 1 function logError(error)
2 { 2 {
3 debug("error is: " + error.toString()); 3 debug("error is: " + error.toString());
4 } 4 }
5 5
6 // Verifies that the given "bytes" holds the same value as "expectedHexString". 6 // Verifies that the given "bytes" holds the same value as "expectedHexString".
7 // "bytes" can be anything recognized by "bytesToHexString()". 7 // "bytes" can be anything recognized by "bytesToHexString()".
8 function bytesShouldMatchHexString(testDescription, expectedHexString, bytes) 8 function bytesShouldMatchHexString(testDescription, expectedHexString, bytes)
9 { 9 {
10 expectedHexString = "[" + expectedHexString.toLowerCase() + "]"; 10 expectedHexString = "[" + expectedHexString.toLowerCase() + "]";
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 debug("Serialized key bytes: " + bytesToHexString(serializedWithoutVersi on)); 117 debug("Serialized key bytes: " + bytesToHexString(serializedWithoutVersi on));
118 } 118 }
119 } 119 }
120 120
121 function shouldEvaluateAs(actual, expectedValue) 121 function shouldEvaluateAs(actual, expectedValue)
122 { 122 {
123 if (typeof expectedValue == "string") 123 if (typeof expectedValue == "string")
124 return shouldBeEqualToString(actual, expectedValue); 124 return shouldBeEqualToString(actual, expectedValue);
125 return shouldEvaluateTo(actual, expectedValue); 125 return shouldEvaluateTo(actual, expectedValue);
126 } 126 }
OLDNEW
« no previous file with comments | « LayoutTests/crypto/subtle/jwk-import-use-values-expected.txt ('k') | LayoutTests/crypto/subtle/resources/keys.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698