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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 CONSOLE ERROR: Invalid wrappedKey argument
2 CONSOLE ERROR: Invalid unwrappingKey argument
3 CONSOLE ERROR: Algorithm: Not an object
4 CONSOLE ERROR: Invalid keyFormat argument
5 CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation
6 CONSOLE ERROR: key.algorithm does not match that of operation
7 Tests calls to unwrapKey() with bad inputs. 1 Tests calls to unwrapKey() with bad inputs.
8 2
9 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
10 4
11 5
12 PASS error is null 6 error is: DataError: Invalid wrappedKey argument
13 PASS error is null 7 error is: DataError: Invalid unwrappingKey argument
14 PASS error is: TypeError: The 7th argument is neither an array, nor does it have indexed properties. 8 error is: TypeError: The 7th argument is neither an array, nor does it have inde xed properties.
15 PASS error is null 9 error is: SyntaxError: Algorithm: Not an object
16 PASS error is: TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': param eter 5 ('unwrappedKeyAlgorithm') is not an object. 10 error is: TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': parameter 5 ('unwrappedKeyAlgorithm') is not an object.
17 PASS error is null 11 error is: SyntaxError: Invalid keyFormat argument
18 PASS error is null 12 error is: NotSupportedError: SHA-1: Unsupported operation: unwrapKey
19 PASS error is null 13 error is: InvalidAccessError: key.algorithm does not match that of operation
20 PASS successfullyParsed is true 14 PASS successfullyParsed is true
21 15
22 TEST COMPLETE 16 TEST COMPLETE
23 17
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698