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

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

Issue 98723004: [webcrypto] Fix a bad test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update tests Created 7 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 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 406e17931f967c80a436b15142be4cbee754f3d4..d4d28a181cc29a0c0b866bf1e63db2e6b2aa2206 100644
--- a/LayoutTests/crypto/encrypt-decrypt.html
+++ b/LayoutTests/crypto/encrypt-decrypt.html
@@ -212,13 +212,12 @@ function testNormalizationFailures(importedKeys)
shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR', counter: null}, keys.aesCtr, data)");
shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR'}, keys.aesCtr, data)");
- shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[0]}, keys.aesCtr, data)");
- shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16]}, keys.aesCtr, data)");
- shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16]}, keys.aesCtr, data)");
- shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length: 0}, keys.aesCtr, data)");
- shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length: 18}, keys.aesCtr, data)");
- shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length: -3}, keys.aesCtr, data)");
- shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length: Infinity}, keys.aesCtr, data)");
+ shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(0)}, keys.aesCtr, data)");
+ shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: 0}, keys.aesCtr, data)");
+ shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: 18}, keys.aesCtr, data)");
+ shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: 256}, keys.aesCtr, data)");
+ shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: -3}, keys.aesCtr, data)");
+ shouldThrow("crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: Infinity}, keys.aesCtr, data)");
// Try calling with the wrong key type.
aesCbc = {name: 'AES-CBC', iv: new Uint8Array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15])};
« 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