Bug 1942639 - Propagate --filter argument from desktop_unittest.py to runreftest...
[gecko.git] / dom / bindings / test / test_document_location_via_xray_cached.html
blobf47f78cd5585ed96af98e9ca01db3681eeee7fdf
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=1041731
5 -->
6 <head>
7 <meta charset="utf-8">
8 <title>Test for Bug 1041731</title>
9 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1041731">Mozilla Bug 1041731</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
16 <iframe id="t" src="http://example.org/tests/dom/bindings/test/file_document_location_set_via_xray.html"></iframe>
17 </div>
18 <pre id="test">
19 <script type="application/javascript">
21 /** Test for Bug 1041731 **/
23 function test() {
24 var loc = document.getElementById("t").contentWindow.document.location;
25 is(loc.toString, loc.toString, "Unforgeable method on the Xray should be cached");
26 SimpleTest.finish();
29 SimpleTest.waitForExplicitFinish();
30 addLoadEvent(test);
32 </script>
33 </pre>
34 </body>
35 </html>