Unreviewed, fix test failures after r239698.
[WebKit-https.git] / LayoutTests / webarchive / test-link-rel-subresource-beforeload-expected.webarchive
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5         <key>WebMainResource</key>
6         <dict>
7                 <key>WebResourceData</key>
8                 <string>&lt;html&gt;&lt;head&gt;
9 &lt;script&gt;
10 function runTest()
11 {
12     if (window.testRunner) {
13         testRunner.dumpDOMAsWebArchive();
14         testRunner.queueReload();
15     }
16 }
17 &lt;/script&gt;
18 &lt;/head&gt;
19 &lt;body onload="runTest()"&gt;
20 &lt;div id="console"&gt;&lt;div style="font-family: monospace; color: green;"&gt;PASS&lt;/div&gt;&lt;/div&gt;
21 &lt;script&gt;
22 function print(message, color) 
23 {
24     var paragraph = document.createElement("div");
25     paragraph.appendChild(document.createTextNode(message));
26     paragraph.style.fontFamily = "monospace";
27     if (color)
28         paragraph.style.color = color;
29     document.getElementById("console").appendChild(paragraph);
30 }
31 &lt;/script&gt;
32 &lt;p&gt;This test should have a green 'PASS' just above this line.  If it doesn't, you failed.
33 &lt;link rel="subresource" onbeforeload="print('PASS','green');return false" href="resources/favicon.ico" type="image/x-icon"&gt;
34
35
36 &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
37                 <key>WebResourceFrameName</key>
38                 <string></string>
39                 <key>WebResourceMIMEType</key>
40                 <string>text/html</string>
41                 <key>WebResourceTextEncodingName</key>
42                 <string>UTF-8</string>
43                 <key>WebResourceURL</key>
44                 <string>file:///LayoutTests/webarchive/test-link-rel-subresource-beforeload.html</string>
45         </dict>
46 </dict>
47 </plist>