4 https://bugzilla.mozilla.org/show_bug.cgi?id=905493
8 <title>Test for Bug
905493</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"/>
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=905493">Mozilla Bug
905493</a>
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>
19 <script type=
"application/javascript">
21 /** Test for Bug
905493 **/
24 var doc = document.getElementById(
"t").contentWindow.document;
25 ok(!(
"x" in doc),
"Should have an Xray here");
26 is(doc.x, undefined,
"Really should have an Xray here");
27 is(doc.wrappedJSObject.x,
5,
"And wrapping the right thing");
28 document.getElementById(
"t").onload = function() {
29 ok(true,
"Load happened");
33 // Test the forwarding location setter
34 doc.location =
"chrome://mochikit/content/tests/SimpleTest/test.css";
37 ok(false,
"Load failed");
42 SimpleTest.waitForExplicitFinish();