Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: LayoutTests/webarchive/adopt-attribute-styled-node-webarchive-expected.webarchive

Issue 14046041: Remove webarchive tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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>&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-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 &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 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.&lt;br&gt;&lt;marquee id="otherMarquee" bgcolor="blue" width="300px"&gt;H ello 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-no de-webarchive.html</string>
83 </dict>
84 </dict>
85 </plist>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698