| Index: third_party/WebKit/LayoutTests/http/tests/multipart/stop-loading-after-onload2.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/multipart/stop-loading.html b/third_party/WebKit/LayoutTests/http/tests/multipart/stop-loading-after-onload2.html
|
| similarity index 62%
|
| copy from third_party/WebKit/LayoutTests/http/tests/multipart/stop-loading.html
|
| copy to third_party/WebKit/LayoutTests/http/tests/multipart/stop-loading-after-onload2.html
|
| index 31383c786d877efd8849bad27efb24badd8db683..0dd8589f353eb23ce9e9ec43d8aff37947f9e540 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/multipart/stop-loading.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/multipart/stop-loading-after-onload2.html
|
| @@ -1,12 +1,14 @@
|
| <html>
|
| <head>
|
| <script>
|
| +// This tests window.stop() can stop loading of multipart images after
|
| +// <img>'s onload and one more part loaded after onload.
|
| if (window.testRunner) {
|
| testRunner.dumpAsText();
|
| testRunner.waitUntilDone();
|
| }
|
|
|
| -function firstPartLoaded()
|
| +function callStop()
|
| {
|
| window.stop();
|
| window.setTimeout(function() {
|
| @@ -16,10 +18,16 @@ function firstPartLoaded()
|
| testRunner.notifyDone();
|
| }, 100);
|
| }
|
| +
|
| +function firstPartLoaded()
|
| +{
|
| + setTimeout(callStop, 1500);
|
| +}
|
| </script>
|
| </head>
|
| <body>
|
| -<img id=testingImage src="resources/multipart.php?interval=1&loop=1&img1=2x2-green.png&img2=abe.png" onload="firstPartLoaded()">
|
| +<!-- |label| is added to avoid interaction between stop-loading* tests -->
|
| +<img id=testingImage src="resources/multipart.php?interval=1&loop=1&img1=2x2-green.png&img2=abe.png&label=2" onload="firstPartLoaded()">
|
| <p id="results"></p>
|
| </body>
|
| </html>
|
|
|