1 This tests the constructor for the HashChangeEvent DOM class.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS new HashChangeEvent('eventType').bubbles is false
7 PASS new HashChangeEvent('eventType').cancelable is false
8 PASS new HashChangeEvent('eventType').oldURL is ""
9 PASS new HashChangeEvent('eventType').newURL is ""
10 PASS new HashChangeEvent('eventType', { bubbles: false }).bubbles is false
11 PASS new HashChangeEvent('eventType', { bubbles: true }).bubbles is true
12 PASS new HashChangeEvent('eventType', { cancelable: false }).cancelable is false
13 PASS new HashChangeEvent('eventType', { cancelable: true }).cancelable is true
14 PASS new HashChangeEvent('eventType', { oldURL: 'doremi' }).oldURL is "doremi"
15 PASS new HashChangeEvent('eventType', { oldURL: '' }).oldURL is ""
16 PASS new HashChangeEvent('eventType', { oldURL: undefined }).oldURL is ""
17 PASS new HashChangeEvent('eventType', { oldURL: null }).oldURL is "null"
18 PASS new HashChangeEvent('eventType', { oldURL: false }).oldURL is "false"
19 PASS new HashChangeEvent('eventType', { oldURL: true }).oldURL is "true"
20 PASS new HashChangeEvent('eventType', { oldURL: 12345 }).oldURL is "12345"
21 PASS new HashChangeEvent('eventType', { oldURL: 18446744073709551615 }).oldURL is "18446744073709552000"
22 PASS new HashChangeEvent('eventType', { oldURL: NaN }).oldURL is "NaN"
23 PASS new HashChangeEvent('eventType', { oldURL: [] }).oldURL is ""
24 PASS new HashChangeEvent('eventType', { oldURL: [1, 2, 3] }).oldURL is "1,2,3"
25 PASS new HashChangeEvent('eventType', { oldURL: {doremi: 12345} }).oldURL is "[object Object]"
26 PASS new HashChangeEvent('eventType', { oldURL: {valueOf: function () { return 'doremi'; } } }).oldURL is "[object Object]"
27 PASS new HashChangeEvent('eventType', { newURL: 'doremi' }).newURL is "doremi"
28 PASS new HashChangeEvent('eventType', { newURL: '' }).newURL is ""
29 PASS new HashChangeEvent('eventType', { newURL: undefined }).newURL is ""
30 PASS new HashChangeEvent('eventType', { newURL: null }).newURL is "null"
31 PASS new HashChangeEvent('eventType', { newURL: false }).newURL is "false"
32 PASS new HashChangeEvent('eventType', { newURL: true }).newURL is "true"
33 PASS new HashChangeEvent('eventType', { newURL: 12345 }).newURL is "12345"
34 PASS new HashChangeEvent('eventType', { newURL: 18446744073709551615 }).newURL is "18446744073709552000"
35 PASS new HashChangeEvent('eventType', { newURL: NaN }).newURL is "NaN"
36 PASS new HashChangeEvent('eventType', { newURL: [] }).newURL is ""
37 PASS new HashChangeEvent('eventType', { newURL: [1, 2, 3] }).newURL is "1,2,3"
38 PASS new HashChangeEvent('eventType', { newURL: {doremi: 12345} }).newURL is "[object Object]"
39 PASS new HashChangeEvent('eventType', { newURL: {valueOf: function () { return 'doremi'; } } }).newURL is "[object Object]"
40 PASS new HashChangeEvent('eventType', { bubbles: true, cancelable: true, oldURL: 'doremi', newURL: 'andre' }).bubbles is true
41 PASS new HashChangeEvent('eventType', { bubbles: true, cancelable: true, oldURL: 'doremi', newURL: 'andre' }).cancelable is true
42 PASS new HashChangeEvent('eventType', { bubbles: true, cancelable: true, oldURL: 'doremi', newURL: 'andre' }).oldURL is "doremi"
43 PASS new HashChangeEvent('eventType', { bubbles: true, cancelable: true, oldURL: 'doremi', newURL: 'andre' }).newURL is "andre"
44 PASS successfullyParsed is true