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