blob: 467630ba90273464d77958d209a4a8e2795fd5b1 [file] [log] [blame]
Tests that calling Object.getOwnPropertyDescriptor() on a sub-frame's window works as expected
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
descriptor = Object.getOwnPropertyDescriptor(otherWindow, 'location')
PASS descriptor is not undefined
PASS descriptor.get instanceof otherWindow.Function is true
PASS descriptor.set instanceof otherWindow.Function is true
PASS descriptor.enumerable is true
PASS descriptor.configurable is false
PASS descriptor.get.call(otherWindow).toString() is "about:blank"
PASS descriptor.get.call() is descriptor.get.call(otherWindow)
PASS successfullyParsed is true
TEST COMPLETE