Chromium Code Reviews| Index: LayoutTests/svg/custom/loadevents-async.html |
| diff --git a/LayoutTests/svg/custom/loadevents-async.html b/LayoutTests/svg/custom/loadevents-async.html |
| index e624e902ca45a29871b0077bc84e1b73ee860701..f6c8fd966b4122b37a24d156690b575bef815563 100644 |
| --- a/LayoutTests/svg/custom/loadevents-async.html |
| +++ b/LayoutTests/svg/custom/loadevents-async.html |
| @@ -14,17 +14,20 @@ var emptyDocument = document.implementation.createDocument("", "", null); |
| document.body.appendChild(spanElement); |
| divElement.appendChild(useElement); |
| -useElement.addEventListener("load", function () { emptyDocument.adoptNode(useElement); invoked = true; }, false); |
| +useElement.addEventListener("load", function () { |
| + emptyDocument.adoptNode(useElement); |
| + invoked = true; |
| + shouldBeTrue("invoked"); |
|
Stephen Chennney
2014/01/13 17:24:17
This seems pointless. Is there some other sensible
Erik Dahlström (inactive)
2014/01/14 09:03:59
Done.
|
| + finishJSTest(); |
| + }, false); |
| spanElement.appendChild(divElement); |
| document.body.appendChild(useElement); |
| shouldBeFalse("invoked"); |
| jsTestIsAsync = true; |
| -setTimeout(function() { |
| - shouldBeTrue("invoked"); |
| - finishJSTest(); |
| -}, 1); |
| +// need to reference an external file to get a load event |
| +useElement.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", "resources/rgb.svg#RGB"); |
| </script> |
| <body> |
| </html> |