3 function subframeLoaded()
5 document.getElementById("result").appendChild(document.createTextNode("SUCCESS: The subframe loaded."));
6 if (window.layoutTestController)
7 layoutTestController.notifyDone();
12 if (window.layoutTestController) {
13 layoutTestController.dumpAsText();
14 layoutTestController.waitUntilDone();
17 var subframeLocation = window.location + "";
18 subframeLocation = subframeLocation.replace(/file:\/\/\//, "file://:1/");
19 subframeLocation = subframeLocation.replace(/file-URL-with-port-number/, "resources/empty-subframe");
20 var subframe = document.getElementById("subframe");
21 subframe.onload = subframeLoaded;
22 subframe.contentWindow.location = subframeLocation;
28 <body onload="runTest()">
29 <p>This tests whether we can load a file URL with a port number in the URL. It should be ignored, and so the load should succeed.</p>
31 <iframe id="subframe" width="20" height="20"></iframe>