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

Unified Diff: third_party/WebKit/LayoutTests/fast/images/image-load-event-in-fragment.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/image-load-event-in-fragment.html
diff --git a/third_party/WebKit/LayoutTests/fast/images/image-load-event-in-fragment.html b/third_party/WebKit/LayoutTests/fast/images/image-load-event-in-fragment.html
deleted file mode 100644
index 5291a1dac4fc113309edfe85eb64a026f3903cbc..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/images/image-load-event-in-fragment.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<body onload="test()">
-<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=31660">bug 31660</a>:
-Image load event fires before the document fragment is attached.</p>
-<div id=result>FAIL - script did not run</div>
-<div id=target></div>
-<!-- Preload an image, possibly making second load synchronous -->
-<img src="resources/boston.gif" style="visibility:hidden">
-<script>
-if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.dumpAsText();
-}
-function test()
-{
- // Parsing a fragment immediately triggers image load. This is true in WebKit and Firefox even
- // if a fragment created with Range.createContextualFragment() does not get attached.
- var r = document.createRange();
- r.setStartAfter(document.body);
- r.setEndAfter(document.body);
- var frag = r.createContextualFragment('<img style="visibility:hidden" src="resources/boston.gif" onload="loaded()" id="new">');
-
- document.getElementById("target").appendChild(frag);
-}
-function loaded()
-{
- // There is code on the Web expecting that an image is in the document by the time its load event fires.
- document.getElementById("result").innerHTML = (document.getElementById("new")) ? "PASS" : "FAIL";
- if (window.testRunner)
- testRunner.notifyDone();
-}
-</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698