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

Side by Side Diff: LayoutTests/crypto/normalize-algorithm-expected.txt

Issue 18475002: WebCrypto: Add framework for AlgorithmIdentifier normalization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
(Empty)
1 Tests algorithm normalization.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS algorithm.name is 'SHA-1'
7 PASS algorithm.name is 'SHA-256'
8 PASS normalizeDigest({}) threw exception NotSupportedError: The implementation d id not support the requested type of object or operation..
9 PASS normalizeDigest({name: null}) threw exception NotSupportedError: The implem entation did not support the requested type of object or operation..
10 PASS normalizeDigest({name: -1}) threw exception NotSupportedError: The implemen tation did not support the requested type of object or operation..
11 PASS normalizeDigest({name: ''}) threw exception NotSupportedError: The implemen tation did not support the requested type of object or operation..
12 PASS normalizeDigest({name: 'nosuchalgorithm'}) threw exception NotSupportedErro r: The implementation did not support the requested type of object or operation. .
13 PASS normalizeDigest({name: '\u0189'}) threw exception SyntaxError: An invalid o r illegal string was specified..
14 PASS normalizeDigest(null) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
15 PASS normalizeDigest(0) threw exception TypeError: Not an object..
16 PASS normalizeDigest(undefined) threw exception NotSupportedError: The implement ation did not support the requested type of object or operation..
17 PASS normalizeDigest('') threw exception TypeError: Not an object..
18 PASS algorithm.noSuchParam is undefined.
19 PASS algorithm.name is 'AES-CBC'
20 PASS algorithm.iv.length is 16
21 PASS algorithm.iv[3] is 3
22 PASS algorithm.iv[3] is 3
23 PASS normalizeEncrypt(rawAlgorithm) threw exception NotSupportedError: The imple mentation did not support the requested type of object or operation..
24 PASS algorithm.name is 'SHA-384'
25 PASS algorithm.name is 'SHA-384'
26 PASS algorithm.name is 'AES-CBC'
27 PASS algorithm.iv.length is 16
28 PASS algorithm.iv[1] is 1
29 PASS algorithm.name is 'AES-CBC'
30 PASS algorithm.iv.length is 16
31 PASS algorithm.iv[1] is 1
32 PASS normalizeEncrypt({ name: 'SHA-1' }) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
33 PASS normalizeDigest({ name: 'AES-CBC', iv: originalIv }) threw exception NotSup portedError: The implementation did not support the requested type of object or operation..
34 PASS successfullyParsed is true
35
36 TEST COMPLETE
37
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698