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

Unified Diff: LayoutTests/webarchive/adopt-inline-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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/webarchive/adopt-inline-styled-node-webarchive-expected.webarchive
diff --git a/LayoutTests/webarchive/adopt-inline-styled-node-webarchive-expected.webarchive b/LayoutTests/webarchive/adopt-inline-styled-node-webarchive-expected.webarchive
deleted file mode 100644
index e8dd818226b1b6e7544d571795eb1f3b5609b18a..0000000000000000000000000000000000000000
--- a/LayoutTests/webarchive/adopt-inline-styled-node-webarchive-expected.webarchive
+++ /dev/null
@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>WebMainResource</key>
- <dict>
- <key>WebResourceData</key>
- <string>&lt;html&gt;&lt;head&gt;
-
-&lt;script&gt;
-
-if (window.testRunner) {
- testRunner.dumpDOMAsWebArchive();
- testRunner.setCanOpenWindows();
- testRunner.waitUntilDone();
-}
-
-var otherWindow = null;
-
-function startTest()
-{
- otherWindow = window.open("resources/adopt-inline-styled-node-second-window.html", "TestWindow");
- if (!otherWindow) {
- alert("When running this test under Safari, popup blocking must be disabled.");
- return;
- }
- tryAdoptNode();
-}
-
-function tryAdoptNode()
-{
- var otherSpan = otherWindow.document.getElementById("otherSpan");
- if (!otherSpan) {
- setTimeout("tryAdoptNode()", 10);
- return;
- }
-
- var adoptedSpan = document.adoptNode(otherSpan);
- document.getElementById("testSpan").appendChild(adoptedSpan);
- otherWindow.close();
-
- procedeAfterClosedWindow();
-}
-
-function procedeAfterClosedWindow()
-{
- if (!otherWindow.closed) {
- setTimeout("procedeAfterClosedWindow()", 10);
- return;
- }
-
- otherWindow = null;
-
- if (window.GCController) {
- GCController.collect();
- if (window.testRunner)
- testRunner.notifyDone();
- else
- alert("How strange - You have window.GCController, but no window.testRunner. How did this happen?");
- }
- else
- alert("Now wait for garbage collection to have occured, then save the current page as a WebArchive.");
-}
-
-&lt;/script&gt;
-&lt;/head&gt;
-
-&lt;body onload="startTest();"&gt;
-&lt;span id="testSpan"&gt;This test takes a node with inline style from a different document, moves it to this document, makes sure the other document has closed,
-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
-way of fulling testing the bug. One should wait "awhile" before making the WebArchive.&lt;br&gt;&lt;span id="otherSpan" style="color: red"&gt;Spaceballs:The Styled Node&lt;/span&gt;&lt;/span&gt;
-
-
-&lt;/body&gt;&lt;/html&gt;</string>
- <key>WebResourceFrameName</key>
- <string></string>
- <key>WebResourceMIMEType</key>
- <string>text/html</string>
- <key>WebResourceTextEncodingName</key>
- <string>UTF-8</string>
- <key>WebResourceURL</key>
- <string>file:///LayoutTests/webarchive/adopt-inline-styled-node-webarchive.html</string>
- </dict>
-</dict>
-</plist>

Powered by Google App Engine
This is Rietveld 408576698