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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/images/png-partial-load-as-document.html

Issue 2278953002: Revert of Fix ImageLoader::m_hasPendingLoadEvent/m_imageComplete in ImageDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/images/png-partial-load-as-document-expected.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <iframe style="background-color: blue; width: 320px; height: 240px;"></iframe>
2 <!--
3 Tests that when a progressive png is loaded as document, the image is shown
4 progressively during loading.
5 The result image should show the dice image partially.
6 -->
7 <script>
8 if (window.testRunner) {
9 testRunner.dumpAsTextWithPixelResults();
10 testRunner.waitUntilDone();
11 }
12
13 function loadAndStall()
14 {
15 return "http://127.0.0.1:8000/resources/load-and-stall.php";
16 }
17
18 function pngImage()
19 {
20 return "?name=../../../fast/images/resources/dice.png&mimeType=image%2Fpng";
21 }
22
23 function testDone()
24 {
25 if (window.testRunner) {
26 window.stop();
27 testRunner.notifyDone();
28 }
29 }
30
31 function runTest()
32 {
33 document.querySelector("iframe").src = loadAndStall() + pngImage() + "&stall At=45057&stallFor=60";
34 setTimeout(testDone, 500);
35 }
36
37 window.onload = function() {
38 setTimeout(runTest, 0);
39 }
40 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/images/png-partial-load-as-document-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698