OLD | NEW |
| (Empty) |
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><html><head> | |
9 | |
10 <script> | |
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-wind
ow.html", "TestWindow"); | |
23 if (!otherWindow) { | |
24 alert("When running this test under Safari, popup blocking must be disab
led."); | |
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.tes
tRunner. How did this happen?"); | |
60 } | |
61 else | |
62 alert("Now wait for garbage collection to have occured, then save the cu
rrent page as a WebArchive."); | |
63 } | |
64 | |
65 </script> | |
66 </head> | |
67 | |
68 <body onload="startTest();"> | |
69 <span id="testSpan">This test takes a node with mapped style attributes fr
om a different document, moves it to this document, makes sure the other documen
t 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 WebA
rchive.<br><marquee id="otherMarquee" bgcolor="blue" width="300px">H
ello there marquee!</marquee></span> | |
72 | |
73 | |
74 </body></html></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-no
de-webarchive.html</string> | |
83 </dict> | |
84 </dict> | |
85 </plist> | |
OLD | NEW |