| Index: third_party/WebKit/LayoutTests/http/tests/multipart/stop-loading.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/multipart/stop-loading.html b/third_party/WebKit/LayoutTests/http/tests/multipart/stop-loading.html
|
| index c5665aab692ced021d82911b43ad40d83f0ed609..03c506931d1bae12edc15b301ff602fa862b9148 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/multipart/stop-loading.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/multipart/stop-loading.html
|
| @@ -6,20 +6,28 @@ if (window.testRunner) {
|
| testRunner.waitUntilDone();
|
| }
|
|
|
| -function firstPartLoaded()
|
| +function hoge()
|
| {
|
| + // <img onload="window.stop();"> works correctly.
|
| + console.log("hoge");
|
| +// setTimeout(function(){console.log("stop");window.stop();console.log("stopDone");}, 0);
|
| window.stop();
|
| - window.setTimeout(function() {
|
| - var broken = (testingImage.width != 2 && testingImage != 76);
|
| - document.getElementById("results").innerHTML = broken ? "PASS" : "FAIL";
|
| - if (window.testRunner)
|
| - testRunner.notifyDone();
|
| - }, 100);
|
| + console.log("hogeDone");
|
| }
|
| +
|
| +function onLoad()
|
| +{
|
| + console.log("onload");
|
| + document.getElementById("results").innerHTML = "PASS";
|
| + if (window.testRunner) {
|
| + testRunner.notifyDone();
|
| + }
|
| +}
|
| +function onR() { console.log("Q" + document.readyState); }
|
| </script>
|
| </head>
|
| -<body>
|
| -<img id=testingImage src="resources/multipart.php?interval=1&loop=1&img1=2x2-green.png&img2=abe.png" onload="firstPartLoaded()">
|
| +<body onload="onLoad()" onreadystatechange="onR()">
|
| +<img id=testingImage src="resources/multipart.php?interval=1&loop=1&img1=2x2-green.png&img2=abe.png" onload="hoge()">
|
| <p id="results"></p>
|
| </body>
|
| </html>
|
|
|