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

Unified Diff: LayoutTests/crypto/importKey.html

Issue 39093002: [webcrypto] Add some more layouttests for crypto.subtle.digest() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | « LayoutTests/crypto/encrypt-decrypt.html ('k') | 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/importKey.html
diff --git a/LayoutTests/crypto/importKey.html b/LayoutTests/crypto/importKey.html
index 1d342e204bff6a354a2013b27e1c1948d8d22933..02475409b4cf15fb1caf8aa7a03579242391313c 100644
--- a/LayoutTests/crypto/importKey.html
+++ b/LayoutTests/crypto/importKey.html
@@ -17,7 +17,7 @@ aesCbc = {name: 'aes-cbc'};
Promise.resolve(null).then(function() {
keyFormat = "raw";
- data = asciiToArrayBuffer("raw bytes for key");
+ data = asciiToUint8Array("raw bytes for key");
algorithm = { name: 'hmac', hash: { name: 'sha-256' } };
extractable = true;
// Note there are duplicates
@@ -34,7 +34,7 @@ Promise.resolve(null).then(function() {
// Same test as above, but with an keyUsages, and AES-CBC.
keyFormat = "raw";
- data = asciiToArrayBuffer("16 bytes of key!");
+ data = asciiToUint8Array("16 bytes of key!");
algorithm = aesCbc;
extractable = true;
keyUsages = [];
@@ -49,7 +49,7 @@ Promise.resolve(null).then(function() {
// Same test as above, but with extractable = false.
keyFormat = "raw";
- data = asciiToArrayBuffer("16 bytes of key!");
+ data = asciiToUint8Array("16 bytes of key!");
algorithm = aesCbc;
extractable = false;
keyUsages = [];
@@ -64,7 +64,7 @@ Promise.resolve(null).then(function() {
// Same test as above, but with key.type of public.
keyFormat = "raw";
- data = asciiToArrayBuffer("16 bytes of key!");
+ data = asciiToUint8Array("16 bytes of key!");
algorithm = aesCbc;
extractable = false;
keyUsages = [];
@@ -79,7 +79,7 @@ Promise.resolve(null).then(function() {
// Same test as above, but with keyFormat = spki
keyFormat = "spki";
- data = asciiToArrayBuffer("16 bytes of key!");
+ data = asciiToUint8Array("16 bytes of key!");
algorithm = aesCbc;
extractable = false;
keyUsages = [];
@@ -90,7 +90,7 @@ Promise.resolve(null).then(function() {
debug("rejected with " + result);
keyFormat = "raw";
- data = asciiToArrayBuffer("");
+ data = asciiToUint8Array("");
algorithm = aesCbc;
extractable = true;
keyUsages = [];
« no previous file with comments | « LayoutTests/crypto/encrypt-decrypt.html ('k') | LayoutTests/crypto/resources/common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698