Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / Element / hostname-host.html
1 <html>\r
2 <head>\r
3 <script>\r
4 function load() {\r
5     if (window.testRunner)\r
6         testRunner.dumpAsText();\r
7     str = "";\r
8     for (i=0;i<10;i++)\r
9       str += "Hostname is " + document.links[i].hostname + ". Host is " + document.links[i].host + "<br>";\r
10     document.getElementById("hostname_host").innerHTML = str;\r
11 }\r
12 </script>\r
13 </head>\r
14 <body onload="load()">\r
15 <a  href="http://dev.w3.org:80/html5/spec/infrastructure.html#interfaces-for-url-manipulation">http with default port</a><br>\r
16 <a  href="https://dev.w3.org:443/html5/spec/infrastructure.html#interfaces-for-url-manipulation">https with default port</a><br>\r
17 <a  href="ftp://dev.w3.org:21/html5/spec/infrastructure.html#interfaces-for-url-manipulation">ftp with default port</a><br>\r
18 <br>\r
19 <a  href="http://dev.w3.org:123/html5/spec/infrastructure.html#interfaces-for-url-manipulation">http with non-default port</a><br>\r
20 <a  href="https://dev.w3.org:123/html5/spec/infrastructure.html#interfaces-for-url-manipulation">https with non-default port</a><br>\r
21 <a  href="ftp://dev.w3.org:123/html5/spec/infrastructure.html#interfaces-for-url-manipulation">ftp with non-default port</a><br>\r
22 <br>\r
23 <a  href="http://dev.w3.org/html5/spec/infrastructure.html#interfaces-for-url-manipulation">http without port</a><br>\r
24 <a  href="https://dev.w3.org/html5/spec/infrastructure.html#interfaces-for-url-manipulation">https without port</a><br>\r
25 <a  href="ftp://dev.w3.org/html5/spec/infrastructure.html#interfaces-for-url-manipulation">ftp without port</a><br>\r
26 <br>\r
27 <a  href="http://dev.w3.org:0/html5/spec/infrastructure.html#interfaces-for-url-manipulation">http with port 0</a><br>\r
28 <span id="hostname_host"></span>\r
29 \r
30 </body>\r
31 </html>\r