1 This tests the constructor for the StorageEvent DOM class.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS new StorageEvent('eventType').bubbles is false
7 PASS new StorageEvent('eventType').cancelable is false
8 PASS new StorageEvent('eventType').key is null
9 PASS new StorageEvent('eventType').oldValue is null
10 PASS new StorageEvent('eventType').newValue is null
11 PASS new StorageEvent('eventType').url is ""
12 PASS new StorageEvent('eventType').storageArea is null
13 PASS new StorageEvent('eventType', { bubbles: false }).bubbles is false
14 PASS new StorageEvent('eventType', { bubbles: true }).bubbles is true
15 PASS new StorageEvent('eventType', { cancelable: false }).cancelable is false
16 PASS new StorageEvent('eventType', { cancelable: true }).cancelable is true
17 PASS new StorageEvent('eventType', { key: 'abcde' }).key is "abcde"
18 PASS new StorageEvent('eventType', { key: '' }).key is ""
19 PASS new StorageEvent('eventType', { key: false }).key is "false"
20 PASS new StorageEvent('eventType', { key: true }).key is "true"
21 PASS new StorageEvent('eventType', { key: 12345 }).key is "12345"
22 PASS new StorageEvent('eventType', { key: 18446744073709551615 }).key is "18446744073709552000"
23 PASS new StorageEvent('eventType', { key: NaN }).key is "NaN"
24 PASS new StorageEvent('eventType', { key: [] }).key is ""
25 PASS new StorageEvent('eventType', { key: [1, 2, 3] }).key is "1,2,3"
26 PASS new StorageEvent('eventType', { key: {abcde: 12345} }).key is "[object Object]"
27 PASS new StorageEvent('eventType', { key: {valueOf: function () { return 'abcde'; } } }).key is "[object Object]"
28 PASS new StorageEvent('eventType', { oldValue: 'abcde' }).oldValue is "abcde"
29 PASS new StorageEvent('eventType', { oldValue: '' }).oldValue is ""
30 PASS new StorageEvent('eventType', { oldValue: false }).oldValue is "false"
31 PASS new StorageEvent('eventType', { oldValue: true }).oldValue is "true"
32 PASS new StorageEvent('eventType', { oldValue: 12345 }).oldValue is "12345"
33 PASS new StorageEvent('eventType', { oldValue: 18446744073709551615 }).oldValue is "18446744073709552000"
34 PASS new StorageEvent('eventType', { oldValue: NaN }).oldValue is "NaN"
35 PASS new StorageEvent('eventType', { oldValue: [] }).oldValue is ""
36 PASS new StorageEvent('eventType', { oldValue: [1, 2, 3] }).oldValue is "1,2,3"
37 PASS new StorageEvent('eventType', { oldValue: {abcde: 12345} }).oldValue is "[object Object]"
38 PASS new StorageEvent('eventType', { oldValue: {valueOf: function () { return 'abcde'; } } }).oldValue is "[object Object]"
39 PASS new StorageEvent('eventType', { newValue: 'abcde' }).newValue is "abcde"
40 PASS new StorageEvent('eventType', { newValue: '' }).newValue is ""
41 PASS new StorageEvent('eventType', { newValue: false }).newValue is "false"
42 PASS new StorageEvent('eventType', { newValue: true }).newValue is "true"
43 PASS new StorageEvent('eventType', { newValue: 12345 }).newValue is "12345"
44 PASS new StorageEvent('eventType', { newValue: 18446744073709551615 }).newValue is "18446744073709552000"
45 PASS new StorageEvent('eventType', { newValue: NaN }).newValue is "NaN"
46 PASS new StorageEvent('eventType', { newValue: [] }).newValue is ""
47 PASS new StorageEvent('eventType', { newValue: [1, 2, 3] }).newValue is "1,2,3"
48 PASS new StorageEvent('eventType', { newValue: {abcde: 12345} }).newValue is "[object Object]"
49 PASS new StorageEvent('eventType', { newValue: {valueOf: function () { return 'abcde'; } } }).newValue is "[object Object]"
50 PASS new StorageEvent('eventType', { url: 'abcde' }).url is "abcde"
51 PASS new StorageEvent('eventType', { url: '' }).url is ""
52 PASS new StorageEvent('eventType', { url: false }).url is "false"
53 PASS new StorageEvent('eventType', { url: true }).url is "true"
54 PASS new StorageEvent('eventType', { url: 12345 }).url is "12345"
55 PASS new StorageEvent('eventType', { url: 18446744073709551615 }).url is "18446744073709552000"
56 PASS new StorageEvent('eventType', { url: NaN }).url is "NaN"
57 PASS new StorageEvent('eventType', { url: [] }).url is ""
58 PASS new StorageEvent('eventType', { url: [1, 2, 3] }).url is "1,2,3"
59 PASS new StorageEvent('eventType', { url: {abcde: 12345} }).url is "[object Object]"
60 PASS new StorageEvent('eventType', { url: {valueOf: function () { return 'abcde'; } } }).url is "[object Object]"
61 PASS new StorageEvent('eventType', { key: undefined }).key is null
62 PASS new StorageEvent('eventType', { key: null }).key is null
63 PASS new StorageEvent('eventType', { oldValue: undefined }).oldValue is null
64 PASS new StorageEvent('eventType', { oldValue: null }).oldValue is null
65 PASS new StorageEvent('eventType', { newValue: undefined }).newValue is null
66 PASS new StorageEvent('eventType', { newValue: null }).newValue is null
67 PASS new StorageEvent('eventType', { url: undefined }).url is ""
68 PASS new StorageEvent('eventType', { url: null }).url is "null"
69 PASS new StorageEvent('eventType', { storageArea: localStorage }).storageArea is localStorage
70 PASS new StorageEvent('eventType', { storageArea: sessionStorage }).storageArea is sessionStorage
71 PASS new StorageEvent('eventType', { storageArea: test_object }).storageArea threw exception TypeError: Failed to construct 'StorageEvent': member storageArea is not of type Storage..
72 PASS new StorageEvent('eventType', { storageArea: window }).storageArea threw exception TypeError: Failed to construct 'StorageEvent': member storageArea is not of type Storage..
73 PASS new StorageEvent('eventType', { storageArea: document }).storageArea threw exception TypeError: Failed to construct 'StorageEvent': member storageArea is not of type Storage..
74 PASS new StorageEvent('eventType', { storageArea: undefined }).storageArea is null
75 PASS new StorageEvent('eventType', { storageArea: null }).storageArea is null
76 PASS new StorageEvent('eventType', { storageArea: false }).storageArea threw exception TypeError: Failed to construct 'StorageEvent': member storageArea is not of type Storage..
77 PASS new StorageEvent('eventType', { storageArea: true }).storageArea threw exception TypeError: Failed to construct 'StorageEvent': member storageArea is not of type Storage..
78 PASS new StorageEvent('eventType', { storageArea: '' }).storageArea threw exception TypeError: Failed to construct 'StorageEvent': member storageArea is not of type Storage..
79 PASS new StorageEvent('eventType', { storageArea: 'chocolate' }).storageArea threw exception TypeError: Failed to construct 'StorageEvent': member storageArea is not of type Storage..
80 PASS new StorageEvent('eventType', { storageArea: 12345 }).storageArea threw exception TypeError: Failed to construct 'StorageEvent': member storageArea is not of type Storage..
81 PASS new StorageEvent('eventType', { storageArea: 18446744073709551615 }).storageArea threw exception TypeError: Failed to construct 'StorageEvent': member storageArea is not of type Storage..
82 PASS new StorageEvent('eventType', { storageArea: NaN }).storageArea threw exception TypeError: Failed to construct 'StorageEvent': member storageArea is not of type Storage..
83 PASS new StorageEvent('eventType', { storageArea: {valueOf: function () { return window; } } }).storageArea == window threw exception TypeError: Failed to construct 'StorageEvent': member storageArea is not of type Storage..
84 PASS new StorageEvent('eventType', { get storageArea() { return localStorage; } }).storageArea is localStorage
85 PASS new StorageEvent('eventType', { get storageArea() { return 123; } }).storageArea threw exception TypeError: Failed to construct 'StorageEvent': member storageArea is not of type Storage..
86 PASS new StorageEvent('eventType', { get storageArea() { throw 'StorageEvent Error'; } }) threw exception StorageEvent Error.
87 PASS new StorageEvent('eventType', { bubbles: true, cancelable: false, key: 'abc', oldValue: 'def', newValue: 'ghi', url: 'jkl', storageArea: localStorage }).bubbles is true
88 PASS new StorageEvent('eventType', { bubbles: false, cancelable: true, key: 'abc', oldValue: 'def', newValue: 'ghi', url: 'jkl', storageArea: localStorage }).cancelable is true
89 PASS new StorageEvent('eventType', { bubbles: true, cancelable: true, key: 'abc', oldValue: 'def', newValue: 'ghi', url: 'jkl', storageArea: localStorage }).key is "abc"
90 PASS new StorageEvent('eventType', { bubbles: true, cancelable: true, key: 'abc', oldValue: 'def', newValue: 'ghi', url: 'jkl', storageArea: localStorage }).oldValue is "def"
91 PASS new StorageEvent('eventType', { bubbles: true, cancelable: true, key: 'abc', oldValue: 'def', newValue: 'ghi', url: 'jkl', storageArea: localStorage }).newValue is "ghi"
92 PASS new StorageEvent('eventType', { bubbles: true, cancelable: true, key: 'abc', oldValue: 'def', newValue: 'ghi', url: 'jkl', storageArea: localStorage }).url is "jkl"
93 PASS new StorageEvent('eventType', { bubbles: true, cancelable: true, key: 'abc', oldValue: 'def', newValue: 'ghi', url: 'jkl', storageArea: localStorage }).storageArea is localStorage
94 PASS successfullyParsed is true