Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / getter-on-window-object.html
blob8e4200b23e24bf781b4147a351d4c8935fadbd7f
1 <html>
2 <script>
3 function runTest() {
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 window.__defineGetter__("foo", function() { return "bar"; });
9 if (window.foo == "bar")
10 document.getElementById('result').innerHTML = 'SUCCESS';
12 </script>
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>
16 </body>
17 </html>