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

Unified Diff: LayoutTests/webarchive/adopt-attribute-styled-node-webarchive.html

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-attribute-styled-node-webarchive.html
diff --git a/LayoutTests/webarchive/adopt-attribute-styled-node-webarchive.html b/LayoutTests/webarchive/adopt-attribute-styled-node-webarchive.html
deleted file mode 100644
index f67e9c2a6c7fad3b3acc3b16031873bdc7ec106d..0000000000000000000000000000000000000000
--- a/LayoutTests/webarchive/adopt-attribute-styled-node-webarchive.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<html>
-<head>
-
-<script>
-
-if (window.testRunner) {
- testRunner.dumpDOMAsWebArchive();
- testRunner.setCanOpenWindows();
- testRunner.waitUntilDone();
-}
-
-var otherWindow = null;
-
-function startTest()
-{
- otherWindow = window.open("resources/adopt-attribute-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 otherMarquee = otherWindow.document.getElementById("otherMarquee");
- if (!otherMarquee) {
- setTimeout("tryAdoptNode()", 10);
- return;
- }
-
- var adoptedMarquee = document.adoptNode(otherMarquee);
- document.getElementById("testSpan").appendChild(adoptedMarquee);
- 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.");
-}
-
-</script>
-</head>
-
-<body onload="startTest();">
-<span id="testSpan">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,
-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.<br></span>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698