AX: <svg> elements with labels and no accessible contents are exposed as empty AXGroups
[WebKit-https.git] / LayoutTests / webarchive / adopt-attribute-styled-node-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 otherWindow = null;
19
20 function startTest()
21 {
22     otherWindow = window.open("resources/adopt-attribute-styled-node-second-window.html", "TestWindow");
23     if (!otherWindow) {
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     var otherMarquee = otherWindow.document.getElementById("otherMarquee");
33     if (!otherMarquee) {
34         setTimeout("tryAdoptNode()", 10);
35         return;
36     }
37     
38     var adoptedMarquee = document.adoptNode(otherMarquee);
39     document.getElementById("testSpan").appendChild(adoptedMarquee);
40     otherWindow.close();
41     
42     procedeAfterClosedWindow();
43 }
44
45 function procedeAfterClosedWindow()
46 {
47     if (!otherWindow.closed) {
48         setTimeout("procedeAfterClosedWindow()", 10);
49         return;
50     }
51     
52     otherWindow = 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 node with mapped style attributes from a different document, moves it to this document, makes sure the other document has closed,
70 then makes a WebArchive from this document.  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;marquee id="otherMarquee" bgcolor="blue" width="300px"&gt;Hello there marquee!&lt;/marquee&gt;&lt;/span&gt;
72
73
74 &lt;/body&gt;&lt;/html&gt;</string>
75                 <key>WebResourceFrameName</key>
76                 <string></string>
77                 <key>WebResourceMIMEType</key>
78                 <string>text/html</string>
79                 <key>WebResourceTextEncodingName</key>
80                 <string>UTF-8</string>
81                 <key>WebResourceURL</key>
82                 <string>file:///LayoutTests/webarchive/adopt-attribute-styled-node-webarchive.html</string>
83         </dict>
84 </dict>
85 </plist>