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

Unified Diff: third_party/WebKit/LayoutTests/fast/images/destroyed-image-load-event.html

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) Created 4 years, 1 month 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: third_party/WebKit/LayoutTests/fast/images/destroyed-image-load-event.html
diff --git a/third_party/WebKit/LayoutTests/fast/images/destroyed-image-load-event.html b/third_party/WebKit/LayoutTests/fast/images/destroyed-image-load-event.html
deleted file mode 100644
index d0bb91cbb6f5f1d021d97cedaf97e9d5a48b25e2..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/images/destroyed-image-load-event.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<body onload="test()">
-<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=34490">bug 34490<a/>:
-WebCore::ImageEventSender::dispatchPendingEvents() crashes in certain conditions.</p>
-<div id="testRun"></div>
-<div id="container"></div>
-<script>
-if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.dumpAsText();
-}
-
-function gc()
-{
- if (window.GCController)
- return GCController.collect();
-
- for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires about 9K allocations before a collect)
- var s = new String("abc");
- }
-}
-
-var container = document.getElementById("container");
-var testRunDiv = document.getElementById("testRun");
-var remainingTestRuns = 30;
-
-function test()
-{
- testRunDiv.innerHTML = remainingTestRuns;
-
- if (--remainingTestRuns < 0) {
- testRunDiv.innerHTML = "PASS";
- if (window.testRunner)
- testRunner.notifyDone();
- return;
- }
-
- container.innerHTML = '<img src="resources/boston.gif" onload="loaded1()">' +
- '<img src="resources/boston.gif" onload="loaded2()">';
-}
-
-function loaded1()
-{
- var img2 = document.getElementsByTagName("img")[1];
- img2.src = "";
- container.removeChild(img2);
- img2 = null;
- gc();
- setTimeout(test, 0);
-}
-
-function loaded2()
-{
-}
-</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698