OLD | NEW |
1 Test DataView. | 1 Test DataView. |
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 Test for constructor not called as a function |
| 7 PASS DataView(new ArrayBuffer) threw exception |
| 8 |
6 Test for constructor taking 1 argument | 9 Test for constructor taking 1 argument |
7 PASS view = new DataView(arayBuffer) is defined. | 10 PASS view = new DataView(arayBuffer) is defined. |
8 PASS view.byteOffset is 0 | 11 PASS view.byteOffset is 0 |
9 PASS view.byteLength is 2 | 12 PASS view.byteLength is 2 |
10 | 13 |
11 Test for constructor taking 2 arguments | 14 Test for constructor taking 2 arguments |
12 PASS view = new DataView(arayBuffer, 1) is defined. | 15 PASS view = new DataView(arayBuffer, 1) is defined. |
13 PASS view.byteOffset is 1 | 16 PASS view.byteOffset is 1 |
14 PASS view.byteLength is 1 | 17 PASS view.byteLength is 1 |
15 | 18 |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 PASS view.setFloat64(1) threw exception SyntaxError: Not enough arguments. | 807 PASS view.setFloat64(1) threw exception SyntaxError: Not enough arguments. |
805 | 808 |
806 Test for indexing that should not work | 809 Test for indexing that should not work |
807 PASS view[0] is undefined. | 810 PASS view[0] is undefined. |
808 PASS view[0] = 3 is defined. | 811 PASS view[0] = 3 is defined. |
809 PASS view.getUint8(0) is 1 | 812 PASS view.getUint8(0) is 1 |
810 PASS successfullyParsed is true | 813 PASS successfullyParsed is true |
811 | 814 |
812 TEST COMPLETE | 815 TEST COMPLETE |
813 | 816 |
OLD | NEW |