OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 <script> | 3 <script> |
4 function log(message) | 4 function log(message) |
5 { | 5 { |
6 var item = document.createElement("li"); | 6 var item = document.createElement("li"); |
7 item.appendChild(document.createTextNode(message)); | 7 item.appendChild(document.createTextNode(message)); |
8 document.getElementById("console").appendChild(item); | 8 document.getElementById("console").appendChild(item); |
9 } | 9 } |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 testRunner.waitUntilDone(); | 24 testRunner.waitUntilDone(); |
25 testRunner.dumpAsText(); | 25 testRunner.dumpAsText(); |
26 testRunner.dumpResourceResponseMIMETypes(); | 26 testRunner.dumpResourceResponseMIMETypes(); |
27 } | 27 } |
28 </script> | 28 </script> |
29 <p>This test verifies that an image which is prefetched, and which is also conta
ined as a | 29 <p>This test verifies that an image which is prefetched, and which is also conta
ined as a |
30 subresource of the current document can be loaded correctly as a subresource. S
ee | 30 subresource of the current document can be loaded correctly as a subresource. S
ee |
31 bug 49236 in which this wasn't working. | 31 bug 49236 in which this wasn't working. |
32 <p>When this test succeeds, you'll see an image of Nick on a sailboat immediatel
y below | 32 <p>When this test succeeds, you'll see an image of Nick on a sailboat immediatel
y below |
33 this text. When this test fails, you will see no images at all. | 33 this text. When this test fails, you will see no images at all. |
| 34 <p>This test shows 3 loads of nick.jpg even though from the source it looks like
there |
| 35 should only be 2. crbug.com/379893 |
34 <link rel="prefetch" href="resources/nick.jpg" onload="nick_onload()" /> | 36 <link rel="prefetch" href="resources/nick.jpg" onload="nick_onload()" /> |
35 <img src="resources/nick.jpg" onload="nick_onload()" /> | 37 <img src="resources/nick.jpg" onload="nick_onload()" /> |
36 <hr> | 38 <hr> |
37 <p><ol id="console"></ol></p> | 39 <p><ol id="console"></ol></p> |
38 </body></html> | 40 </body></html> |
39 | 41 |
OLD | NEW |