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

Unified Diff: LayoutTests/crypto/hmac-sign-verify.html

Issue 222553007: [webcrypto] Expose crypto.subtle to web workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: check if changes... Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/crypto/resources/common.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/hmac-sign-verify.html
diff --git a/LayoutTests/crypto/hmac-sign-verify.html b/LayoutTests/crypto/hmac-sign-verify.html
index aded6fad4d4cd1c703dcbc7725a358b9fcbc9f79..53dc30b66536e169ec6de7711b3a06a02ccc088f 100644
--- a/LayoutTests/crypto/hmac-sign-verify.html
+++ b/LayoutTests/crypto/hmac-sign-verify.html
@@ -87,12 +87,12 @@ function runTest(testCase)
// shouldBe() can only resolve variables in global context.
tmpKey = key;
- shouldEvaluateAs("tmpKey.type", "secret")
- shouldEvaluateAs("tmpKey.extractable", false)
- shouldEvaluateAs("tmpKey.algorithm.name", "HMAC")
- shouldEvaluateAs("tmpKey.algorithm.hash.name", testCase.hash)
+ shouldEvaluateAs("tmpKey.type", "secret");
+ shouldEvaluateAs("tmpKey.extractable", false);
+ shouldEvaluateAs("tmpKey.algorithm.name", "HMAC");
+ shouldEvaluateAs("tmpKey.algorithm.hash.name", testCase.hash);
shouldEvaluateAs("tmpKey.algorithm.length", keyData.length * 8);
- shouldEvaluateAs("tmpKey.usages.join(',')", "sign,verify")
+ shouldEvaluateAs("tmpKey.usages.join(',')", "sign,verify");
// (2) Sign.
return crypto.subtle.sign(algorithm, key, hexStringToUint8Array(testCase.message));
@@ -103,14 +103,14 @@ function runTest(testCase)
return crypto.subtle.verify(algorithm, key, hexStringToUint8Array(testCase.mac), hexStringToUint8Array(testCase.message));
}).then(function(result) {
verifyResult = result;
- shouldBe("verifyResult", "true")
+ shouldBe("verifyResult", "true");
// (4) Verify truncated mac (by stripping 1 byte off of it).
var expectedMac = hexStringToUint8Array(testCase.mac);
return crypto.subtle.verify(algorithm, key, expectedMac.subarray(0, expectedMac.byteLength - 1), hexStringToUint8Array(testCase.message));
}).then(function(result) {
verifyResult = result;
- shouldBe("verifyResult", "false")
+ shouldBe("verifyResult", "false");
});
}
« no previous file with comments | « no previous file | LayoutTests/crypto/resources/common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698