| OLD | NEW |
| 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 random = crypto.getRandomValues(new Uint8Array(3)) is defined. | 8 PASS random = crypto.getRandomValues(new Uint8Array(3)) is defined. |
| 9 PASS random is an instance of Uint8Array | 9 PASS random is an instance of Uint8Array |
| 10 PASS view = new Uint8Array(3) is defined. | 10 PASS view = new Uint8Array(3) is defined. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 PASS random = crypto.getRandomValues(new Uint32Array(3)) is defined. | 33 PASS random = crypto.getRandomValues(new Uint32Array(3)) is defined. |
| 34 PASS random is an instance of Uint32Array | 34 PASS random is an instance of Uint32Array |
| 35 PASS view = new Uint32Array(3) is defined. | 35 PASS view = new Uint32Array(3) is defined. |
| 36 PASS random = crypto.getRandomValues(view) is defined. | 36 PASS random = crypto.getRandomValues(view) is defined. |
| 37 PASS random is view | 37 PASS random is view |
| 38 PASS random = crypto.getRandomValues(new Int32Array(3)) is defined. | 38 PASS random = crypto.getRandomValues(new Int32Array(3)) is defined. |
| 39 PASS random is an instance of Int32Array | 39 PASS random is an instance of Int32Array |
| 40 PASS view = new Int32Array(3) is defined. | 40 PASS view = new Int32Array(3) is defined. |
| 41 PASS random = crypto.getRandomValues(view) is defined. | 41 PASS random = crypto.getRandomValues(view) is defined. |
| 42 PASS random is view | 42 PASS random is view |
| 43 PASS crypto.getRandomValues(new Float32Array(3)) threw exception TypeMismatchErr
or: The type of an object was incompatible with the expected type of the paramet
er associated to the object.. | 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.. |
| 44 PASS crypto.getRandomValues(new Float64Array(3)) threw exception TypeMismatchErr
or: The type of an object was incompatible with the expected type of the paramet
er associated to the object.. | 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.. |
| 45 PASS buffer = new Uint8Array(32) is defined. | 45 PASS buffer = new Uint8Array(32) is defined. |
| 46 PASS buffer.buffer is defined. | 46 PASS buffer.buffer is defined. |
| 47 PASS view = new DataView(buffer.buffer) is defined. | 47 PASS view = new DataView(buffer.buffer) is defined. |
| 48 PASS crypto.getRandomValues(view) threw exception TypeMismatchError: The type of
an object was incompatible with the expected type of the parameter associated t
o the object.. | 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.. |
| 49 PASS successfullyParsed is true | 49 PASS successfullyParsed is true |
| 50 | 50 |
| 51 TEST COMPLETE | 51 TEST COMPLETE |
| 52 | 52 |
| OLD | NEW |