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

Side by Side Diff: third_party/WebKit/LayoutTests/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 unified diff | Download patch
OLDNEW
1 <body onload="test()"> 1 <body onload="test()">
2 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=31660">bug 31660</a >: 2 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=31660">bug 31660</a >:
3 Image load event fires before the document fragment is attached.</p> 3 Image load event fires before the document fragment is attached.</p>
4 <div id=result>FAIL - script did not run</div> 4 <div id=result>FAIL - script did not run</div>
5 <div id=target></div> 5 <div id=target></div>
6 <!-- Preload an image, possibly making second load synchronous --> 6 <!-- Preload an image, possibly making second load synchronous -->
7 <img src="resources/boston.gif" style="visibility:hidden"> 7 <img src="resources/boston.gif" style="visibility:hidden">
8 <script> 8 <script>
9 if (window.testRunner) { 9 if (window.testRunner) {
10 testRunner.waitUntilDone(); 10 testRunner.waitUntilDone();
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 function loaded() 24 function loaded()
25 { 25 {
26 // There is code on the Web expecting that an image is in the document by th e time its load event fires. 26 // There is code on the Web expecting that an image is in the document by th e time its load event fires.
27 document.getElementById("result").innerHTML = (document.getElementById("new" )) ? "PASS" : "FAIL"; 27 document.getElementById("result").innerHTML = (document.getElementById("new" )) ? "PASS" : "FAIL";
28 if (window.testRunner) 28 if (window.testRunner)
29 testRunner.notifyDone(); 29 testRunner.notifyDone();
30 } 30 }
31 </script> 31 </script>
32 </body> 32 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698