| OLD | NEW |
| 1 This page tests what happens when a getter / setter on the window object conflic
ts with another property or declared variable | 1 This page tests what happens when a getter / setter on the window object conflic
ts with another property or declared variable |
| 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 window.x is 1 | 6 PASS window.x is 1 |
| 7 PASS typeof window.__lookupGetter__('x') is 'undefined' | 7 PASS typeof window.__lookupGetter__('x') is 'undefined' |
| 8 PASS typeof Object.getOwnPropertyDescriptor(window, 'x').get is 'undefined' | 8 PASS typeof Object.getOwnPropertyDescriptor(window, 'x').get is 'undefined' |
| 9 | 9 |
| 10 PASS window.x is 2 | 10 PASS window.x is 2 |
| 11 PASS typeof window.__lookupGetter__('x') is 'undefined' | 11 PASS typeof window.__lookupGetter__('x') is 'undefined' |
| 12 PASS typeof Object.getOwnPropertyDescriptor(window, 'x').get is 'undefined' | 12 PASS typeof Object.getOwnPropertyDescriptor(window, 'x').get is 'undefined' |
| 13 | 13 |
| 14 PASS window.y is 'window.y __getter__' | 14 PASS window.y is 'window.y __getter__' |
| 15 PASS typeof window.__lookupGetter__('y') is 'function' | 15 PASS typeof window.__lookupGetter__('y') is 'function' |
| 16 PASS typeof Object.getOwnPropertyDescriptor(window, 'y').get is 'function' | 16 PASS typeof Object.getOwnPropertyDescriptor(window, 'y').get is 'function' |
| 17 | 17 |
| 18 PASS window.y is 'window.y __getter__' | 18 PASS window.y is 'window.y __getter__' |
| 19 PASS typeof window.__lookupGetter__('y') is 'function' | 19 PASS typeof window.__lookupGetter__('y') is 'function' |
| 20 PASS typeof Object.getOwnPropertyDescriptor(window, 'y').get is 'function' | 20 PASS typeof Object.getOwnPropertyDescriptor(window, 'y').get is 'function' |
| 21 | 21 |
| 22 PASS window.z is undefined. | 22 PASS window.z is undefined. |
| 23 PASS typeof window.__lookupSetter__('z') is 'function' | 23 PASS typeof window.__lookupSetter__('z') is 'function' |
| 24 PASS typeof Object.getOwnPropertyDescriptor(window, 'z').set is 'function' | 24 PASS typeof Object.getOwnPropertyDescriptor(window, 'z').set is 'function' |
| 25 PASS successfullyParsed is true |
| 25 | 26 |
| 27 TEST COMPLETE |
| 28 |
| OLD | NEW |