[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / fast / loader / file-URL-with-port-number.html
1 <head>
2 <script>
3 function subframeLoaded()
4 {
5     document.getElementById("result").appendChild(document.createTextNode("SUCCESS: The subframe loaded."));
6     if (window.layoutTestController)
7         layoutTestController.notifyDone();
8 }
9
10 function runTest()
11 {
12     if (window.layoutTestController) {
13         layoutTestController.dumpAsText();
14         layoutTestController.waitUntilDone();
15     }
16
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;
23 }
24
25 </script>
26 </head>
27
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>
30 <p id="result"></p>
31 <iframe id="subframe" width="20" height="20"></iframe>
32 </body>