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

Unified Diff: LayoutTests/crypto/encrypt-decrypt-expected.txt

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 | « LayoutTests/crypto/encrypt-decrypt.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/encrypt-decrypt-expected.txt
diff --git a/LayoutTests/crypto/encrypt-decrypt-expected.txt b/LayoutTests/crypto/encrypt-decrypt-expected.txt
index 655818c5cec89341839b076a808685eb792ef16e..e7ac0928012d26db18b55860c1f69bbce0267072 100644
--- a/LayoutTests/crypto/encrypt-decrypt-expected.txt
+++ b/LayoutTests/crypto/encrypt-decrypt-expected.txt
@@ -50,13 +50,12 @@ PASS crypto.subtle.encrypt({name: 'AES-CBC', iv: 3}, keys.aesCbc, data) threw ex
PASS crypto.subtle.encrypt({name: 'AES-CBC', iv: new Uint8Array[0]}, keys.aesCbc, data) threw exception TypeError: undefined is not a function.
PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: null}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: AesCtrParams: counter: Missing or not a Uint8Array.
PASS crypto.subtle.encrypt({name: 'AES-CTR'}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: AesCtrParams: counter: Missing or not a Uint8Array.
-PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[0]}, keys.aesCtr, data) threw exception TypeError: undefined is not a function.
-PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16]}, keys.aesCtr, data) threw exception TypeError: undefined is not a function.
-PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16]}, keys.aesCtr, data) threw exception TypeError: undefined is not a function.
-PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length: 0}, keys.aesCtr, data) threw exception TypeError: undefined is not a function.
-PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length: 18}, keys.aesCtr, data) threw exception TypeError: undefined is not a function.
-PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length: -3}, keys.aesCtr, data) threw exception TypeError: undefined is not a function.
-PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array[16], length: Infinity}, keys.aesCtr, data) threw exception TypeError: undefined is not a function.
+PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(0)}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: AesCtrParams: length: Missing required property.
+PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: 0}, keys.aesCtr, data) threw exception NotSupportedError: Failed to execute 'encrypt' on 'SubtleCrypto': key.algorithm does not match that of operation.
+PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: 18}, keys.aesCtr, data) threw exception NotSupportedError: Failed to execute 'encrypt' on 'SubtleCrypto': key.algorithm does not match that of operation.
+PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: 256}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric range.
+PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: -3}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric range.
+PASS crypto.subtle.encrypt({name: 'AES-CTR', counter: new Uint8Array(16), length: Infinity}, keys.aesCtr, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Algorithm: AES-CTR: AesCtrParams: length: Outside of numeric range.
PASS crypto.subtle.encrypt(aesCbc, keys.hmacSha1, data) threw exception NotSupportedError: Failed to execute 'encrypt' on 'SubtleCrypto': key.algorithm does not match that of operation.
PASS crypto.subtle.encrypt(aesCbc, keys.aesCbcJustDecrypt, data) threw exception NotSupportedError: Failed to execute 'encrypt' on 'SubtleCrypto': key.usages does not permit this operation.
PASS crypto.subtle.encrypt({name: 'bogus'}, null, data) threw exception TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': Invalid key argument.
« no previous file with comments | « LayoutTests/crypto/encrypt-decrypt.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698