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

Unified Diff: LayoutTests/fast/loader/resources/unschedule-relayout-after-unload-target.html

Issue 733633003: Remove some unreliable usages of setTimeout( ,0) from layout tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/images/jpeg-partial-load.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/loader/resources/unschedule-relayout-after-unload-target.html
diff --git a/LayoutTests/fast/loader/resources/unschedule-relayout-after-unload-target.html b/LayoutTests/fast/loader/resources/unschedule-relayout-after-unload-target.html
index fd1414a0feea2523b29d92b6e37983403d69d5b8..d864c4d6c94a31366302c36d227fabb0b13b9eda 100644
--- a/LayoutTests/fast/loader/resources/unschedule-relayout-after-unload-target.html
+++ b/LayoutTests/fast/loader/resources/unschedule-relayout-after-unload-target.html
@@ -1,10 +1,9 @@
<html>
<script>
- window.setTimeout(
- function() {
- document.body.innerHTML = 'SUCCESS: Navigated';
- if (window.testRunner)
- testRunner.notifyDone();
- }, 0);
+window.onload = function() {
+ document.body.innerHTML = 'SUCCESS: Navigated';
+ if (window.testRunner)
+ testRunner.notifyDone();
+};
</script>
</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/images/jpeg-partial-load.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698