OLD | NEW |
| (Empty) |
1 This tests the constructor for the ProgressEvent DOM class. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS new ProgressEvent('eventType').bubbles is false | |
7 PASS new ProgressEvent('eventType').cancelable is false | |
8 PASS new ProgressEvent('eventType').lengthComputable is false | |
9 PASS new ProgressEvent('eventType').loaded is 0 | |
10 PASS new ProgressEvent('eventType').total is 0 | |
11 PASS new ProgressEvent('eventType', { bubbles: false }).bubbles is false | |
12 PASS new ProgressEvent('eventType', { bubbles: true }).bubbles is true | |
13 PASS new ProgressEvent('eventType', { cancelable: false }).cancelable is false | |
14 PASS new ProgressEvent('eventType', { cancelable: true }).cancelable is true | |
15 PASS new ProgressEvent('eventType', { lengthComputable: false }).lengthComputabl
e is false | |
16 PASS new ProgressEvent('eventType', { lengthComputable: true }).lengthComputable
is true | |
17 PASS new ProgressEvent('eventType', { loaded: 0 }).loaded is 0 | |
18 PASS new ProgressEvent('eventType', { loaded: 1 }).loaded is 1 | |
19 PASS new ProgressEvent('eventType', { loaded: 9007199254740990 }).loaded is 9007
199254740990 | |
20 PASS new ProgressEvent('eventType', { loaded: 9007199254740991 }).loaded is 9007
199254740991 | |
21 PASS new ProgressEvent('eventType', { loaded: 18446744073709551615 }).loaded is
0 | |
22 FAIL new ProgressEvent('eventType', { loaded: 12345678901234567890 }).loaded sho
uld be 12345678901234567000. Was 9223372036854776000. | |
23 PASS new ProgressEvent('eventType', { loaded: -1 }).loaded is 184467440737095516
15 | |
24 PASS new ProgressEvent('eventType', { loaded: NaN }).loaded is 0 | |
25 PASS new ProgressEvent('eventType', { loaded: 123.45 }).loaded is 123 | |
26 PASS new ProgressEvent('eventType', { loaded: undefined }).loaded is 0 | |
27 PASS new ProgressEvent('eventType', { loaded: null }).loaded is 0 | |
28 PASS new ProgressEvent('eventType', { loaded: '' }).loaded is 0 | |
29 PASS new ProgressEvent('eventType', { loaded: '12345' }).loaded is 12345 | |
30 PASS new ProgressEvent('eventType', { loaded: '12345a' }).loaded is 0 | |
31 PASS new ProgressEvent('eventType', { loaded: 'abc' }).loaded is 0 | |
32 PASS new ProgressEvent('eventType', { loaded: [] }).loaded is 0 | |
33 PASS new ProgressEvent('eventType', { loaded: [12345] }).loaded is 12345 | |
34 PASS new ProgressEvent('eventType', { loaded: [12345, 67890] }).loaded is 0 | |
35 PASS new ProgressEvent('eventType', { loaded: {} }).loaded is 0 | |
36 PASS new ProgressEvent('eventType', { loaded: {moe: 12345} }).loaded is 0 | |
37 PASS new ProgressEvent('eventType', { loaded: {valueOf: function () { return 123
45; }} }).loaded is 12345 | |
38 PASS new ProgressEvent('eventType', { total: 0 }).total is 0 | |
39 PASS new ProgressEvent('eventType', { total: 1 }).total is 1 | |
40 PASS new ProgressEvent('eventType', { total: 9007199254740990 }).total is 900719
9254740990 | |
41 PASS new ProgressEvent('eventType', { total: 9007199254740991 }).total is 900719
9254740991 | |
42 PASS new ProgressEvent('eventType', { total: 18446744073709551615 }).total is 0 | |
43 FAIL new ProgressEvent('eventType', { total: 12345678901234567890 }).total shoul
d be 12345678901234567000. Was 9223372036854776000. | |
44 PASS new ProgressEvent('eventType', { total: -1 }).total is 18446744073709551615 | |
45 PASS new ProgressEvent('eventType', { total: NaN }).total is 0 | |
46 PASS new ProgressEvent('eventType', { total: 123.45 }).total is 123 | |
47 PASS new ProgressEvent('eventType', { total: undefined }).total is 0 | |
48 PASS new ProgressEvent('eventType', { total: null }).total is 0 | |
49 PASS new ProgressEvent('eventType', { total: '' }).total is 0 | |
50 PASS new ProgressEvent('eventType', { total: '12345' }).total is 12345 | |
51 PASS new ProgressEvent('eventType', { total: '12345a' }).total is 0 | |
52 PASS new ProgressEvent('eventType', { total: 'abc' }).total is 0 | |
53 PASS new ProgressEvent('eventType', { total: [] }).total is 0 | |
54 PASS new ProgressEvent('eventType', { total: [12345] }).total is 12345 | |
55 PASS new ProgressEvent('eventType', { total: [12345, 67890] }).total is 0 | |
56 PASS new ProgressEvent('eventType', { total: {} }).total is 0 | |
57 PASS new ProgressEvent('eventType', { total: {moe: 12345} }).total is 0 | |
58 PASS new ProgressEvent('eventType', { total: {valueOf: function () { return 1234
5; }} }).total is 12345 | |
59 PASS new ProgressEvent('eventType', { bubbles: true, cancelable: true, lengthCom
putable: true, loaded: 12345, total: 12345 }).bubbles is true | |
60 PASS new ProgressEvent('eventType', { bubbles: true, cancelable: true, lengthCom
putable: true, loaded: 12345, total: 12345 }).cancelable is true | |
61 PASS new ProgressEvent('eventType', { bubbles: true, cancelable: true, lengthCom
putable: true, loaded: 12345, total: 12345 }).lengthComputable is true | |
62 PASS new ProgressEvent('eventType', { bubbles: true, cancelable: true, lengthCom
putable: true, loaded: 12345, total: 12345 }).loaded is 12345 | |
63 PASS new ProgressEvent('eventType', { bubbles: true, cancelable: true, lengthCom
putable: true, loaded: 12345, total: 12345 }).total is 12345 | |
64 PASS successfullyParsed is true | |
65 | |
66 TEST COMPLETE | |
67 | |
OLD | NEW |