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

Side by Side Diff: LayoutTests/crypto/random-values-types-expected.txt

Issue 801283002: [bindings] Make Crypto.getRandomValues use generated binding rather than using custom binding. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | LayoutTests/crypto/resources/random-values-types.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Tests which types are valid for crypto.randomValues. 1 Tests which types are valid for crypto.randomValues.
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 PASS 'crypto' in self is true 6 PASS 'crypto' in self is true
7 PASS 'getRandomValues' in self.crypto is true 7 PASS 'getRandomValues' in self.crypto is true
8 PASS crypto.getRandomValues() threw exception TypeError: Failed to execute 'getR andomValues' on 'Crypto': 1 argument required, but only 0 present..
9 PASS crypto.getRandomValues(undefined) threw exception TypeMismatchError: Failed to execute 'getRandomValues' on 'Crypto': The provided ArrayBufferView is null. .
10 PASS crypto.getRandomValues(null) threw exception TypeMismatchError: Failed to e xecute 'getRandomValues' on 'Crypto': The provided ArrayBufferView is null..
8 PASS random = crypto.getRandomValues(new Uint8Array(3)) is defined. 11 PASS random = crypto.getRandomValues(new Uint8Array(3)) is defined.
9 PASS random is an instance of Uint8Array 12 PASS random is an instance of Uint8Array
10 PASS view = new Uint8Array(3) is defined. 13 PASS view = new Uint8Array(3) is defined.
11 PASS random = crypto.getRandomValues(view) is defined. 14 PASS random = crypto.getRandomValues(view) is defined.
12 PASS random is view 15 PASS random is view
13 PASS random = crypto.getRandomValues(new Int8Array(3)) is defined. 16 PASS random = crypto.getRandomValues(new Int8Array(3)) is defined.
14 PASS random is an instance of Int8Array 17 PASS random is an instance of Int8Array
15 PASS view = new Int8Array(3) is defined. 18 PASS view = new Int8Array(3) is defined.
16 PASS random = crypto.getRandomValues(view) is defined. 19 PASS random = crypto.getRandomValues(view) is defined.
17 PASS random is view 20 PASS random is view
(...skipping 25 matching lines...) Expand all
43 PASS crypto.getRandomValues(new Float32Array(3)) threw exception TypeMismatchErr or: Failed to execute 'getRandomValues' on 'Crypto': The provided ArrayBufferVie w is of type 'Float32', which is not an integer array type.. 46 PASS crypto.getRandomValues(new Float32Array(3)) threw exception TypeMismatchErr or: Failed to execute 'getRandomValues' on 'Crypto': The provided ArrayBufferVie w is of type 'Float32', which is not an integer array type..
44 PASS crypto.getRandomValues(new Float64Array(3)) threw exception TypeMismatchErr or: Failed to execute 'getRandomValues' on 'Crypto': The provided ArrayBufferVie w is of type 'Float64', which is not an integer array type.. 47 PASS crypto.getRandomValues(new Float64Array(3)) threw exception TypeMismatchErr or: Failed to execute 'getRandomValues' on 'Crypto': The provided ArrayBufferVie w is of type 'Float64', which is not an integer array type..
45 PASS buffer = new Uint8Array(32) is defined. 48 PASS buffer = new Uint8Array(32) is defined.
46 PASS buffer.buffer is defined. 49 PASS buffer.buffer is defined.
47 PASS view = new DataView(buffer.buffer) is defined. 50 PASS view = new DataView(buffer.buffer) is defined.
48 PASS crypto.getRandomValues(view) threw exception TypeMismatchError: Failed to e xecute 'getRandomValues' on 'Crypto': The provided ArrayBufferView is of type 'D ataView', which is not an integer array type.. 51 PASS crypto.getRandomValues(view) threw exception TypeMismatchError: Failed to e xecute 'getRandomValues' on 'Crypto': The provided ArrayBufferView is of type 'D ataView', which is not an integer array type..
49 PASS successfullyParsed is true 52 PASS successfullyParsed is true
50 53
51 TEST COMPLETE 54 TEST COMPLETE
52 55
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/crypto/resources/random-values-types.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698