Unreviewed, fix test failures after r239698.
[WebKit-https.git] / LayoutTests / webarchive / test-link-rel-subresource-beforeload.html
1 <html>
2 <head>
3 <script>
4 function runTest()
5 {
6     if (window.testRunner) {
7         testRunner.dumpDOMAsWebArchive();
8         testRunner.queueReload();
9     }
10 }
11 </script>
12 </head>
13 <body onload="runTest()">
14 <div id="console"></div>
15 <script>
16 function print(message, color) 
17 {
18     var paragraph = document.createElement("div");
19     paragraph.appendChild(document.createTextNode(message));
20     paragraph.style.fontFamily = "monospace";
21     if (color)
22         paragraph.style.color = color;
23     document.getElementById("console").appendChild(paragraph);
24 }
25 </script>
26 <p>This test should have a green 'PASS' just above this line.  If it doesn't, you failed.
27 <link rel="subresource" onbeforeload="print('PASS','green');return false" href="resources/favicon.ico" type="image/x-icon">
28 </body>
29 </html>