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

Unified Diff: LayoutTests/crypto/encrypt-decrypt.html

Issue 194323002: [webcrypto] Change the order of usages in Key.usages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/encrypt-decrypt-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/encrypt-decrypt.html
diff --git a/LayoutTests/crypto/encrypt-decrypt.html b/LayoutTests/crypto/encrypt-decrypt.html
index f0c1a5cd4e5a2a6da4ba10153edf1b23971331b0..58805b9d6e44e3d30583699017020390512ba7f8 100644
--- a/LayoutTests/crypto/encrypt-decrypt.html
+++ b/LayoutTests/crypto/encrypt-decrypt.html
@@ -152,7 +152,7 @@ function runAesCbcSuccessTestCase(testCase)
shouldBe("tmpKey.extractable", "false");
shouldBe("tmpKey.algorithm.name", "'AES-CBC'");
shouldBe("tmpKey.algorithm.length", (keyData.byteLength * 8).toString());
- shouldBe("tmpKey.usages.join(',')", "'decrypt,encrypt'");
+ shouldBe("tmpKey.usages.join(',')", "'encrypt,decrypt'");
// (2) Encrypt.
return crypto.subtle.encrypt(algorithm, key, hexStringToUint8Array(testCase.plainText));
@@ -189,7 +189,7 @@ function runAesGcmSuccessTestCase(testCase)
shouldBe("tmpKey.type", "'secret'");
shouldBe("tmpKey.extractable", "false");
shouldBe("tmpKey.algorithm.name", "'AES-GCM'");
- shouldBe("tmpKey.usages.join(',')", "'decrypt,encrypt'");
+ shouldBe("tmpKey.usages.join(',')", "'encrypt,decrypt'");
// (2) Encrypt.
return crypto.subtle.encrypt(algorithm, key, hexStringToUint8Array(testCase.plainText));
« no previous file with comments | « no previous file | LayoutTests/crypto/encrypt-decrypt-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698