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

Unified Diff: LayoutTests/svg/custom/draw-image-crash.html

Issue 561813003: Prepare blink to unify definitions of load completion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/svg/custom/draw-image-crash.html
diff --git a/LayoutTests/svg/custom/draw-image-crash.html b/LayoutTests/svg/custom/draw-image-crash.html
index 8b7065a5c0a7fe4c430fb13d0bc0a29153b4b7ed..37709854e5007dba95388c658c1ffb69e5374849 100644
--- a/LayoutTests/svg/custom/draw-image-crash.html
+++ b/LayoutTests/svg/custom/draw-image-crash.html
@@ -6,7 +6,7 @@ This test passes if it does not crash and 'PASS' is printed.<br/>
if (window.testRunner)
testRunner.waitUntilDone();
-setTimeout(function() {
+window.onload = function() {
if (location.hash == '#done') {
document.write('PASS');
if (window.testRunner) {
@@ -17,7 +17,7 @@ setTimeout(function() {
location.hash = 'done';
window.location.reload();
}
-}, 0);
+}
</script>
</html>

Powered by Google App Engine
This is Rietveld 408576698