5 testRunner
.dumpAsText();
7 window
.__defineGetter__("foo", function() { return "bar"; });
9 if (window
.foo
== "bar")
10 document
.getElementById('result').innerHTML
= 'SUCCESS';
13 <body onload=
"runTest()">
14 <div>This tests that defining a getter on the window object and then invoking it returns the correct value and doesn't cause an assertion failure.
15 <div id=
"result">FAILURE
</div>