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

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

Issue 235123002: Should throw TypeError instead of TypeMismatchError (modules) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
OLDNEW
1 [Worker] Tests which types are valid for crypto.randomValues. 1 [Worker] 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 Starting worker: resources/random-values-types.js 6 Starting worker: resources/random-values-types.js
7 PASS [Worker] 'crypto' in self is true 7 PASS [Worker] 'crypto' in self is true
8 PASS [Worker] 'getRandomValues' in self.crypto is true 8 PASS [Worker] 'getRandomValues' in self.crypto is true
9 PASS [Worker] random = crypto.getRandomValues(new Uint8Array(3)) is defined. 9 PASS [Worker] random = crypto.getRandomValues(new Uint8Array(3)) is defined.
10 PASS [Worker] random is an instance of Uint8Array 10 PASS [Worker] random is an instance of Uint8Array
(...skipping 23 matching lines...) Expand all
34 PASS [Worker] random = crypto.getRandomValues(new Uint32Array(3)) is defined. 34 PASS [Worker] random = crypto.getRandomValues(new Uint32Array(3)) is defined.
35 PASS [Worker] random is an instance of Uint32Array 35 PASS [Worker] random is an instance of Uint32Array
36 PASS [Worker] view = new Uint32Array(3) is defined. 36 PASS [Worker] view = new Uint32Array(3) is defined.
37 PASS [Worker] random = crypto.getRandomValues(view) is defined. 37 PASS [Worker] random = crypto.getRandomValues(view) is defined.
38 PASS [Worker] random is view 38 PASS [Worker] random is view
39 PASS [Worker] random = crypto.getRandomValues(new Int32Array(3)) is defined. 39 PASS [Worker] random = crypto.getRandomValues(new Int32Array(3)) is defined.
40 PASS [Worker] random is an instance of Int32Array 40 PASS [Worker] random is an instance of Int32Array
41 PASS [Worker] view = new Int32Array(3) is defined. 41 PASS [Worker] view = new Int32Array(3) is defined.
42 PASS [Worker] random = crypto.getRandomValues(view) is defined. 42 PASS [Worker] random = crypto.getRandomValues(view) is defined.
43 PASS [Worker] random is view 43 PASS [Worker] random is view
44 PASS [Worker] crypto.getRandomValues(new Float32Array(3)) threw exception TypeMi smatchError: Failed to execute 'getRandomValues' on 'Crypto': The provided Array BufferView is of type 'Float32', which is not an integer array type.. 44 PASS [Worker] crypto.getRandomValues(new Float32Array(3)) threw exception TypeEr ror: Failed to execute 'getRandomValues' on 'Crypto': The provided ArrayBufferVi ew is of type 'Float32', which is not an integer array type..
45 PASS [Worker] crypto.getRandomValues(new Float64Array(3)) threw exception TypeMi smatchError: Failed to execute 'getRandomValues' on 'Crypto': The provided Array BufferView is of type 'Float64', which is not an integer array type.. 45 PASS [Worker] crypto.getRandomValues(new Float64Array(3)) threw exception TypeEr ror: Failed to execute 'getRandomValues' on 'Crypto': The provided ArrayBufferVi ew is of type 'Float64', which is not an integer array type..
46 PASS [Worker] buffer = new Uint8Array(32) is defined. 46 PASS [Worker] buffer = new Uint8Array(32) is defined.
47 PASS [Worker] buffer.buffer is defined. 47 PASS [Worker] buffer.buffer is defined.
48 PASS [Worker] view = new DataView(buffer.buffer) is defined. 48 PASS [Worker] view = new DataView(buffer.buffer) is defined.
49 PASS [Worker] crypto.getRandomValues(view) threw exception TypeMismatchError: Fa iled to execute 'getRandomValues' on 'Crypto': The provided ArrayBufferView is o f type 'DataView', which is not an integer array type.. 49 PASS [Worker] crypto.getRandomValues(view) threw exception TypeError: Failed to execute 'getRandomValues' on 'Crypto': The provided ArrayBufferView is of type ' DataView', which is not an integer array type..
50 PASS successfullyParsed is true 50 PASS successfullyParsed is true
51 51
52 TEST COMPLETE 52 TEST COMPLETE
53 53
OLDNEW
« no previous file with comments | « LayoutTests/crypto/random-values-types-expected.txt ('k') | LayoutTests/fast/mediastream/RTCIceCandidate-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698