3 <script src=
"../../resources/js-test.js"></script>
5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.waitUntilDone();
10 var iframeHasLoadedFirstPage
= false;
14 if (!iframeHasLoadedFirstPage
) {
15 iframeHasLoadedFirstPage
= true;
17 shouldBe("document.getElementById('theFrame').contentDocument.baseURI", "'about:blank'");
18 var iframe
= document
.getElementById('theFrame');
19 iframe
.src
= "javascript:document.location.replace('./resources/iframe-no-src-set-location-pass.html')";
21 shouldBe("document.getElementById('theFrame').contentDocument.body.innerHTML", "'PASS\\n'");
23 isSuccessfullyParsed();
25 if (window
.testRunner
) {
26 testRunner
.notifyDone();
35 description("This tests that an iframe with no src attribute uses the parent document's URL as a base when resolving non-fully-qualified URLs set by JavaScript.");
37 <iframe id=
"theFrame" onload=
"runTest()"></iframe>