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

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

Issue 16820007: Expose crypto.getRandomValues() to workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 6 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 which types are valid for crypto.randomValues.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS 'crypto' in window is true
7 PASS 'getRandomValues' in window.crypto is true
8 PASS random = crypto.getRandomValues(new Uint8Array(3)) is defined.
9 PASS random is an instance of Uint8Array
10 PASS view = new Uint8Array(3) is defined.
11 PASS random = crypto.getRandomValues(view) is defined.
12 PASS random is view
13 PASS random = crypto.getRandomValues(new Int8Array(3)) is defined.
14 PASS random is an instance of Int8Array
15 PASS view = new Int8Array(3) is defined.
16 PASS random = crypto.getRandomValues(view) is defined.
17 PASS random is view
18 PASS random = crypto.getRandomValues(new Uint8ClampedArray(3)) is defined.
19 PASS random is an instance of Uint8ClampedArray
20 PASS view = new Uint8ClampedArray(3) is defined.
21 PASS random = crypto.getRandomValues(view) is defined.
22 PASS random is view
23 PASS random = crypto.getRandomValues(new Uint16Array(3)) is defined.
24 PASS random is an instance of Uint16Array
25 PASS view = new Uint16Array(3) is defined.
26 PASS random = crypto.getRandomValues(view) is defined.
27 PASS random is view
28 PASS random = crypto.getRandomValues(new Int16Array(3)) is defined.
29 PASS random is an instance of Int16Array
30 PASS view = new Int16Array(3) is defined.
31 PASS random = crypto.getRandomValues(view) is defined.
32 PASS random is view
33 PASS random = crypto.getRandomValues(new Uint32Array(3)) is defined.
34 PASS random is an instance of Uint32Array
35 PASS view = new Uint32Array(3) is defined.
36 PASS random = crypto.getRandomValues(view) is defined.
37 PASS random is view
38 PASS random = crypto.getRandomValues(new Int32Array(3)) is defined.
39 PASS random is an instance of Int32Array
40 PASS view = new Int32Array(3) is defined.
41 PASS random = crypto.getRandomValues(view) is defined.
42 PASS random is view
43 PASS crypto.getRandomValues(new Float32Array(3)) threw exception Error: TypeMism atchError: DOM Exception 17.
44 PASS crypto.getRandomValues(new Float64Array(3)) threw exception Error: TypeMism atchError: DOM Exception 17.
45 PASS buffer = new Uint8Array(32) is defined.
46 PASS buffer.buffer is defined.
47 PASS view = new DataView(buffer.buffer) is defined.
48 PASS crypto.getRandomValues(view) threw exception Error: TypeMismatchError: DOM Exception 17.
49 PASS successfullyParsed is true
50
51 TEST COMPLETE
52
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698