Changed the postion of context menu to avaliable space
[framework/web/webkit-efl.git] / LayoutTests / webarchive / adopt-attribute-styled-body-webarchive-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
10 &lt;script&gt;
11
12 if (window.testRunner) {
13     testRunner.dumpDOMAsWebArchive();
14     testRunner.setCanOpenWindows();
15     testRunner.waitUntilDone();
16 }
17
18 var secondWindow = null;
19
20 function startTest()
21 {
22     secondWindow = window.open("resources/adopt-attribute-styled-body-second-window.html", "TestWindow");
23     if (!secondWindow) {
24         alert("When running this test under Safari, popup blocking must be disabled.");
25         return;
26     }
27     tryAdoptNode();
28 }
29
30 function tryAdoptNode()
31 {
32     window.bodyToAdopt = secondWindow.document.getElementById("otherBody");
33     if (!secondWindow.doneWithBody || !window.bodyToAdopt) {
34         setTimeout("tryAdoptNode()", 10);
35         return;
36     }
37     
38     secondWindow.close();
39     
40     document.getElementById("iframeSpan").innerHTML = "&lt;iframe src='resources/adopt-attribute-styled-body-iframe.html'&gt;&lt;/iframe&gt;";
41
42     procedeAfterClosedWindow();
43 }
44
45 function procedeAfterClosedWindow()
46 {
47     if (!secondWindow.closed || window.bodyToAdopt) {
48         setTimeout("procedeAfterClosedWindow()", 10);
49         return;
50     }
51     
52     secondWindow = null;
53     
54     if (window.GCController) {
55         GCController.collect();
56         if (window.testRunner)
57             testRunner.notifyDone();
58         else
59             alert("How strange - You have window.GCController, but no window.testRunner.  How did this happen?");
60     }
61     else
62         alert("Now wait for garbage collection to have occured, then save the current page as a WebArchive.");
63 }
64
65 &lt;/script&gt;
66 &lt;/head&gt;
67
68 &lt;body onload="startTest();"&gt;
69 &lt;span id="testSpan"&gt;This test takes a body with inline link color styling from a second window, moves it to the document of an iframe, makes sure the 
70 second window has closed, then makes a WebArchive.  The test passes if it doesn't crash.  If running the test in Safari then garbage collection might get in the
71 way of fulling testing the bug.  One should wait "awhile" before making the WebArchive.&lt;br&gt;&lt;/span&gt;&lt;br&gt;
72 &lt;span id="iframeSpan"&gt;&lt;iframe src="resources/adopt-attribute-styled-body-iframe.html"&gt;&lt;/iframe&gt;&lt;/span&gt;
73
74
75 &lt;/body&gt;&lt;/html&gt;</string>
76                 <key>WebResourceFrameName</key>
77                 <string></string>
78                 <key>WebResourceMIMEType</key>
79                 <string>text/html</string>
80                 <key>WebResourceTextEncodingName</key>
81                 <string>UTF-8</string>
82                 <key>WebResourceURL</key>
83                 <string>file:///LayoutTests/webarchive/adopt-attribute-styled-body-webarchive.html</string>
84         </dict>
85         <key>WebSubframeArchives</key>
86         <array>
87                 <dict>
88                         <key>WebMainResource</key>
89                         <dict>
90                                 <key>WebResourceData</key>
91                                 <string>&lt;html&gt;&lt;head&gt;&lt;script&gt;
92 if (window.parent.bodyToAdopt) {
93     document.getElementsByTagName("html")[0].appendChild(document.adoptNode(window.parent.bodyToAdopt));
94     window.parent.bodyToAdopt = null;
95 } else
96     alert("window.parent.bodyToAdopt is not set - Are you viewing this page as part of the adopt-attribute-styled-body test?");
97 &lt;/script&gt;
98 &lt;/head&gt;&lt;body id="otherBody" vlink="green" alink="green"&gt;
99 &lt;a href="SomeUnvisitedPage.html"&gt;Spaceballs: The Unvisited Link&lt;/a&gt;&lt;br&gt;
100 &lt;a href="about:blank"&gt;Spaceballs: The Visited Link&lt;/a&gt;
101
102
103 &lt;/body&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;</string>
104                                 <key>WebResourceFrameName</key>
105                                 <string>&lt;!--framePath //&lt;!--frame0--&gt;--&gt;</string>
106                                 <key>WebResourceMIMEType</key>
107                                 <string>text/html</string>
108                                 <key>WebResourceTextEncodingName</key>
109                                 <string>UTF-8</string>
110                                 <key>WebResourceURL</key>
111                                 <string>file:///LayoutTests/webarchive/resources/adopt-attribute-styled-body-iframe.html</string>
112                         </dict>
113                 </dict>
114         </array>
115 </dict>
116 </plist>