OLD | NEW |
1 Test to ensure correct behaviour of Object.getOwnPropertyDescriptor | 1 Test to ensure correct behaviour of Object.getOwnPropertyDescriptor |
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 Object.getOwnPropertyDescriptor({}, 'undefinedProperty') is undefined. | 6 PASS Object.getOwnPropertyDescriptor({}, 'undefinedProperty') is undefined. |
7 PASS Object.getOwnPropertyDescriptor({definedProperty:'defined'}, 'definedProper
ty').value is "defined" | 7 PASS Object.getOwnPropertyDescriptor({definedProperty:'defined'}, 'definedProper
ty').value is "defined" |
8 PASS Object.getOwnPropertyDescriptor({definedProperty:'defined'}, 'definedProper
ty').hasOwnProperty('get') is false | 8 PASS Object.getOwnPropertyDescriptor({definedProperty:'defined'}, 'definedProper
ty').hasOwnProperty('get') is false |
9 PASS Object.getOwnPropertyDescriptor({definedProperty:'defined'}, 'definedProper
ty').hasOwnProperty('set') is false | 9 PASS Object.getOwnPropertyDescriptor({definedProperty:'defined'}, 'definedProper
ty').hasOwnProperty('set') is false |
10 PASS Object.getOwnPropertyDescriptor({definedProperty:'defined'}, 'definedProper
ty').enumerable is true | 10 PASS Object.getOwnPropertyDescriptor({definedProperty:'defined'}, 'definedProper
ty').enumerable is true |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').hasOwnProperty('g
et') is false | 128 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').hasOwnProperty('g
et') is false |
129 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').hasOwnProperty('s
et') is false | 129 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').hasOwnProperty('s
et') is false |
130 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').enumerable is fal
se | 130 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').enumerable is fal
se |
131 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').configurable is t
rue | 131 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').configurable is t
rue |
132 PASS Object.getOwnPropertyDescriptor(global, 'length').value is global.length | 132 PASS Object.getOwnPropertyDescriptor(global, 'length').value is global.length |
133 PASS Object.getOwnPropertyDescriptor(global, 'length').hasOwnProperty('get') is
false | 133 PASS Object.getOwnPropertyDescriptor(global, 'length').hasOwnProperty('get') is
false |
134 PASS Object.getOwnPropertyDescriptor(global, 'length').hasOwnProperty('set') is
false | 134 PASS Object.getOwnPropertyDescriptor(global, 'length').hasOwnProperty('set') is
false |
135 PASS Object.getOwnPropertyDescriptor(global, 'length').enumerable is true | 135 PASS Object.getOwnPropertyDescriptor(global, 'length').enumerable is true |
136 FAIL Object.getOwnPropertyDescriptor(global, 'length').configurable should be fa
lse. Was true. | 136 FAIL Object.getOwnPropertyDescriptor(global, 'length').configurable should be fa
lse. Was true. |
137 FAIL Object.getOwnPropertyDescriptor(global, 0).value should be [object Window].
Threw exception TypeError: Cannot read property 'value' of undefined | 137 FAIL Object.getOwnPropertyDescriptor(global, 0).value should be [object Window].
Threw exception TypeError: Cannot read property 'value' of undefined |
138 FAIL Object.getOwnPropertyDescriptor(global, 0).hasOwnProperty('get') should be
false. Threw exception TypeError: Cannot call method 'hasOwnProperty' of undefin
ed | 138 FAIL Object.getOwnPropertyDescriptor(global, 0).hasOwnProperty('get') should be
false. Threw exception TypeError: Cannot read property 'hasOwnProperty' of undef
ined |
139 FAIL Object.getOwnPropertyDescriptor(global, 0).hasOwnProperty('set') should be
false. Threw exception TypeError: Cannot call method 'hasOwnProperty' of undefin
ed | 139 FAIL Object.getOwnPropertyDescriptor(global, 0).hasOwnProperty('set') should be
false. Threw exception TypeError: Cannot read property 'hasOwnProperty' of undef
ined |
140 FAIL Object.getOwnPropertyDescriptor(global, 0).enumerable should be false. Thre
w exception TypeError: Cannot read property 'enumerable' of undefined | 140 FAIL Object.getOwnPropertyDescriptor(global, 0).enumerable should be false. Thre
w exception TypeError: Cannot read property 'enumerable' of undefined |
141 FAIL Object.getOwnPropertyDescriptor(global, 0).configurable should be false. Th
rew exception TypeError: Cannot read property 'configurable' of undefined | 141 FAIL Object.getOwnPropertyDescriptor(global, 0).configurable should be false. Th
rew exception TypeError: Cannot read property 'configurable' of undefined |
142 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'leng
th').value is 1 | 142 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'leng
th').value is 1 |
143 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'leng
th').hasOwnProperty('get') is false | 143 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'leng
th').hasOwnProperty('get') is false |
144 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'leng
th').hasOwnProperty('set') is false | 144 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'leng
th').hasOwnProperty('set') is false |
145 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'leng
th').enumerable is true | 145 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'leng
th').enumerable is true |
146 FAIL Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'leng
th').configurable should be false. Was true. | 146 FAIL Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'leng
th').configurable should be false. Was true. |
147 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 0).va
lue is document.getElementsByTagName('div')[0] | 147 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 0).va
lue is document.getElementsByTagName('div')[0] |
148 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 0).ha
sOwnProperty('get') is false | 148 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 0).ha
sOwnProperty('get') is false |
149 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 0).ha
sOwnProperty('set') is false | 149 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 0).ha
sOwnProperty('set') is false |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 PASS property is 'enumerable' | 207 PASS property is 'enumerable' |
208 PASS property is 'configurable' | 208 PASS property is 'configurable' |
209 PASS property is 'get' | 209 PASS property is 'get' |
210 PASS property is 'set' | 210 PASS property is 'set' |
211 PASS property is 'enumerable' | 211 PASS property is 'enumerable' |
212 PASS property is 'configurable' | 212 PASS property is 'configurable' |
213 PASS successfullyParsed is true | 213 PASS successfullyParsed is true |
214 | 214 |
215 TEST COMPLETE | 215 TEST COMPLETE |
216 | 216 |
OLD | NEW |