3 <script src="../js/resources/js-test-pre.js"></script>
5 if (window.layoutTestController) {
6 layoutTestController.dumpAsText();
7 layoutTestController.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.layoutTestController) {
26 layoutTestController.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>