OLD | NEW |
(Empty) | |
| 1 [Worker] 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 Starting worker: resources/random-values-types.js |
| 7 PASS [Worker] 'crypto' in self is true |
| 8 PASS [Worker] 'getRandomValues' in self.crypto is true |
| 9 PASS [Worker] random = crypto.getRandomValues(new Uint8Array(3)) is defined. |
| 10 PASS [Worker] random is an instance of Uint8Array |
| 11 PASS [Worker] view = new Uint8Array(3) is defined. |
| 12 PASS [Worker] random = crypto.getRandomValues(view) is defined. |
| 13 PASS [Worker] random is view |
| 14 PASS [Worker] random = crypto.getRandomValues(new Int8Array(3)) is defined. |
| 15 PASS [Worker] random is an instance of Int8Array |
| 16 PASS [Worker] view = new Int8Array(3) is defined. |
| 17 PASS [Worker] random = crypto.getRandomValues(view) is defined. |
| 18 PASS [Worker] random is view |
| 19 PASS [Worker] random = crypto.getRandomValues(new Uint8ClampedArray(3)) is defin
ed. |
| 20 PASS [Worker] random is an instance of Uint8ClampedArray |
| 21 PASS [Worker] view = new Uint8ClampedArray(3) is defined. |
| 22 PASS [Worker] random = crypto.getRandomValues(view) is defined. |
| 23 PASS [Worker] random is view |
| 24 PASS [Worker] random = crypto.getRandomValues(new Uint16Array(3)) is defined. |
| 25 PASS [Worker] random is an instance of Uint16Array |
| 26 PASS [Worker] view = new Uint16Array(3) is defined. |
| 27 PASS [Worker] random = crypto.getRandomValues(view) is defined. |
| 28 PASS [Worker] random is view |
| 29 PASS [Worker] random = crypto.getRandomValues(new Int16Array(3)) is defined. |
| 30 PASS [Worker] random is an instance of Int16Array |
| 31 PASS [Worker] view = new Int16Array(3) is defined. |
| 32 PASS [Worker] random = crypto.getRandomValues(view) is defined. |
| 33 PASS [Worker] random is view |
| 34 PASS [Worker] random = crypto.getRandomValues(new Uint32Array(3)) is defined. |
| 35 PASS [Worker] random is an instance of Uint32Array |
| 36 PASS [Worker] view = new Uint32Array(3) is defined. |
| 37 PASS [Worker] random = crypto.getRandomValues(view) is defined. |
| 38 PASS [Worker] random is view |
| 39 PASS [Worker] random = crypto.getRandomValues(new Int32Array(3)) is defined. |
| 40 PASS [Worker] random is an instance of Int32Array |
| 41 PASS [Worker] view = new Int32Array(3) is defined. |
| 42 PASS [Worker] random = crypto.getRandomValues(view) is defined. |
| 43 PASS [Worker] random is view |
| 44 PASS [Worker] crypto.getRandomValues(new Float32Array(3)) threw exception Error:
TypeMismatchError: DOM Exception 17. |
| 45 PASS [Worker] crypto.getRandomValues(new Float64Array(3)) threw exception Error:
TypeMismatchError: DOM Exception 17. |
| 46 PASS [Worker] buffer = new Uint8Array(32) is defined. |
| 47 PASS [Worker] buffer.buffer is defined. |
| 48 PASS [Worker] view = new DataView(buffer.buffer) is defined. |
| 49 PASS [Worker] crypto.getRandomValues(view) threw exception Error: TypeMismatchEr
ror: DOM Exception 17. |
| 50 PASS successfullyParsed is true |
| 51 |
| 52 TEST COMPLETE |
| 53 |
OLD | NEW |