93c11b64ec2aff3dca2f3f349e6213dcd1b7cdd8
[WebKit-https.git] / LayoutTests / http / tests / uri / username-with-no-hostname.html-disabled
1 <!DOCTYPE html>
2 <html>
3 <head>
4   <script src="/js-test-resources/js-test-pre.js"></script>
5 </head>
6 <body onload="load()">
7
8 This test checks that URLs with a username but no hostname do not
9 mistakenly get loaded. If it fails in the browser, you will also see
10 an image.
11
12 <p id="description"></p>
13 <div id="console"></div>
14
15 <img src="http://user@/localhost:8000/misc/resources/compass.jpg" onerror="this.width=0">
16 <script>
17 function load() {
18     shouldBe('document.getElementsByTagName("img")[0].width', "0");
19 }
20 </script>       
21
22 </body>