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

Side by Side Diff: LayoutTests/crypto/digest-expected.txt

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 7 years, 3 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 Tests cypto.subtle.digest. 1 Tests cypto.subtle.digest.
2 2
3 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 ".
4 4
5 5
6 SHA1 of [] 6 SHA1 of []
7 = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09] 7 = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09]
8 SHA1 of [0x0] 8 SHA1 of [0x0]
9 = [5b a9 3c 9d b0 cf f9 3f 52 b5 21 d7 42 0e 43 f6 ed a2 78 4f] 9 = [5b a9 3c 9d b0 cf f9 3f 52 b5 21 d7 42 0e 43 f6 ed a2 78 4f]
10 SHA-256 rejects (dummy implementation) 10 SHA-256 rejects (dummy implementation)
11 rejected with value of null 11 rejected with value of null
12 Error (dummy implementation rejects this input) 12 Error (dummy implementation rejects this input)
13 rejected with value of null 13 rejected with value of null
14 PASS crypto.subtle.digest({name: 'sha-1'}) threw exception TypeError: Not enough arguments. 14 PASS crypto.subtle.digest({name: 'sha-1'}) threw exception TypeError: Failed to execute 'digest' on 'SubtleCrypto': 2 arguments required, but only 1 present..
15 PASS crypto.subtle.digest({name: 'sha-1'}, null) threw exception TypeError: Inva lid dataBuffer argument. 15 PASS crypto.subtle.digest({name: 'sha-1'}, null) threw exception TypeError: Inva lid dataBuffer argument.
16 PASS crypto.subtle.digest({name: 'sha-1'}, 10) threw exception TypeError: Invali d dataBuffer argument. 16 PASS crypto.subtle.digest({name: 'sha-1'}, 10) threw exception TypeError: Invali d dataBuffer argument.
17 PASS crypto.subtle.digest({name: 'sha'}, data) threw exception NotSupportedError : Algorithm: Unrecognized algorithm name. 17 PASS crypto.subtle.digest({name: 'sha'}, data) threw exception NotSupportedError : Algorithm: Unrecognized algorithm name.
18 PASS crypto.subtle.digest(null, data) threw exception TypeError: Algorithm: Not an object. 18 PASS crypto.subtle.digest(null, data) threw exception TypeError: Algorithm: Not an object.
19 PASS crypto.subtle.digest({}, data) threw exception TypeError: Algorithm: name: Missing or not a string. 19 PASS crypto.subtle.digest({}, data) threw exception TypeError: Algorithm: name: Missing or not a string.
20 PASS successfullyParsed is true 20 PASS successfullyParsed is true
21 21
22 TEST COMPLETE 22 TEST COMPLETE
23 23
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/editing/pasteboard/data-transfer-items-drag-drop-string.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698