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

Side by Side Diff: LayoutTests/crypto/wrapKey-badParameters-expected.txt

Issue 222003006: [webcrypto] Don't throw any extra WebIDL exceptions from WebCrypto methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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
« no previous file with comments | « LayoutTests/crypto/wrapKey-badParameters.html ('k') | Source/modules/crypto/SubtleCrypto.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 CONSOLE ERROR: Invalid key argument
2 CONSOLE ERROR: Invalid wrappingKey argument
3 CONSOLE ERROR: Algorithm: Not an object
1 CONSOLE ERROR: Invalid keyFormat argument 4 CONSOLE ERROR: Invalid keyFormat argument
2 CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation 5 CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation
3 CONSOLE ERROR: key.algorithm does not match that of operation 6 CONSOLE ERROR: key.algorithm does not match that of operation
4 Tests calls to wrapKey() with bad inputs. 7 Tests calls to wrapKey() with bad inputs.
5 8
6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 9 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
7 10
8 11
9 PASS crypto.subtle.wrapKey('raw', 1, wrappingKey, wrapAlgorithm) threw exception TypeError: Failed to execute 'wrapKey' on 'SubtleCrypto': Invalid key argument.
10 PASS crypto.subtle.wrapKey('raw', key, '', wrapAlgorithm) threw exception TypeEr ror: Failed to execute 'wrapKey' on 'SubtleCrypto': Invalid wrappingKey argument .
11 PASS crypto.subtle.wrapKey('raw', key, wrappingKey, undefined) threw exception T ypeError: Failed to execute 'wrapKey' on 'SubtleCrypto': Algorithm: Not an objec t.
12 PASS error is null 12 PASS error is null
13 PASS error is null 13 PASS error is null
14 PASS error is null 14 PASS error is null
15 PASS error is null
16 PASS error is null
17 PASS error is null
15 PASS successfullyParsed is true 18 PASS successfullyParsed is true
16 19
17 TEST COMPLETE 20 TEST COMPLETE
18 21
OLDNEW
« no previous file with comments | « LayoutTests/crypto/wrapKey-badParameters.html ('k') | Source/modules/crypto/SubtleCrypto.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698