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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/multipart/stop-loading-after-onload1.html

Issue 1800333003: Keep multipart images in m_nonBlockingLoaders after first part loaded (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reflect comments. Created 4 years, 9 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/multipart/stop-loading-after-onload1-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 // This tests window.stop() can stop loading of multipart images after
5 // <img>'s onload and before the next part loaded after onload.
4 if (window.testRunner) { 6 if (window.testRunner) {
5 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
6 testRunner.waitUntilDone(); 8 testRunner.waitUntilDone();
7 } 9 }
8 10
9 function firstPartLoaded() 11 function callStop()
10 { 12 {
11 window.stop(); 13 window.stop();
12 window.setTimeout(function() { 14 window.setTimeout(function() {
13 var broken = (testingImage.width != 2 && testingImage.width != 76); 15 var broken = (testingImage.width != 2 && testingImage.width != 76);
14 document.getElementById("results").innerHTML = broken ? "PASS" : "FAIL"; 16 document.getElementById("results").innerHTML = broken ? "PASS" : "FAIL";
15 if (window.testRunner) 17 if (window.testRunner)
16 testRunner.notifyDone(); 18 testRunner.notifyDone();
17 }, 100); 19 }, 100);
18 } 20 }
21
22 function firstPartLoaded()
23 {
24 setTimeout(callStop, 0);
25 }
19 </script> 26 </script>
20 </head> 27 </head>
21 <body> 28 <body>
22 <img id=testingImage src="resources/multipart.php?interval=1&loop=1&img1=2x2-gre en.png&img2=abe.png" onload="firstPartLoaded()"> 29 <!-- |label| is added to avoid interaction between stop-loading* tests -->
30 <img id=testingImage src="resources/multipart.php?interval=1&loop=1&img1=2x2-gre en.png&img2=abe.png&label=1" onload="firstPartLoaded()">
23 <p id="results"></p> 31 <p id="results"></p>
24 </body> 32 </body>
25 </html> 33 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/multipart/stop-loading-after-onload1-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698