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

Unified Diff: LayoutTests/crypto/unwrapKey-badParameters-expected.txt

Issue 243853004: [webcrypto] Reject failed operations with a DOMException rather than null. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compile warning Created 6 years, 8 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/unwrapKey-badParameters.html ('k') | LayoutTests/crypto/unwrapKey-lacks-usage.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/unwrapKey-badParameters-expected.txt
diff --git a/LayoutTests/crypto/unwrapKey-badParameters-expected.txt b/LayoutTests/crypto/unwrapKey-badParameters-expected.txt
index e222406d9cbb393cc5daad7eadc5ecf84a1ad738..ea196430875dda52b43d0ec97a5798538c0a72be 100644
--- a/LayoutTests/crypto/unwrapKey-badParameters-expected.txt
+++ b/LayoutTests/crypto/unwrapKey-badParameters-expected.txt
@@ -1,22 +1,16 @@
-CONSOLE ERROR: Invalid wrappedKey argument
-CONSOLE ERROR: Invalid unwrappingKey argument
-CONSOLE ERROR: Algorithm: Not an object
-CONSOLE ERROR: Invalid keyFormat argument
-CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation
-CONSOLE ERROR: key.algorithm does not match that of operation
Tests calls to unwrapKey() with bad inputs.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS error is null
-PASS error is null
-PASS error is: TypeError: The 7th argument is neither an array, nor does it have indexed properties.
-PASS error is null
-PASS error is: TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': parameter 5 ('unwrappedKeyAlgorithm') is not an object.
-PASS error is null
-PASS error is null
-PASS error is null
+error is: DataError: Invalid wrappedKey argument
+error is: DataError: Invalid unwrappingKey argument
+error is: TypeError: The 7th argument is neither an array, nor does it have indexed properties.
+error is: SyntaxError: Algorithm: Not an object
+error is: TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': parameter 5 ('unwrappedKeyAlgorithm') is not an object.
+error is: SyntaxError: Invalid keyFormat argument
+error is: NotSupportedError: SHA-1: Unsupported operation: unwrapKey
+error is: InvalidAccessError: key.algorithm does not match that of operation
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « LayoutTests/crypto/unwrapKey-badParameters.html ('k') | LayoutTests/crypto/unwrapKey-lacks-usage.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698