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

Unified Diff: LayoutTests/fast/hidpi/resources/srcset-helper.js

Issue 715863004: Update a couple more tests for load completion definition change (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update srcset-helper.js instead of tests 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/resources/srcset-helper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/hidpi/resources/srcset-helper.js
diff --git a/LayoutTests/fast/hidpi/resources/srcset-helper.js b/LayoutTests/fast/hidpi/resources/srcset-helper.js
index 6c8182e3ce8a1458a39634313f412803b6864b38..ca2911f3fa84e5518b5e31bd96bf366f59df5c75 100644
--- a/LayoutTests/fast/hidpi/resources/srcset-helper.js
+++ b/LayoutTests/fast/hidpi/resources/srcset-helper.js
@@ -13,8 +13,11 @@ function runTest() {
if (sessionStorage.pageReloaded && sessionStorage.scaleFactorIsSet) {
delete sessionStorage.pageReloaded;
delete sessionStorage.scaleFactorIsSet;
- if (!window.manualNotifyDone)
- testRunner.notifyDone();
+ if (!window.manualNotifyDone) {
+ setTimeout(function() {
+ testRunner.notifyDone();
+ }, 0);
+ }
} else {
// Right now there is a bug that srcset does not properly deal with dynamic changes to the scale factor,
// so to work around that, we must reload the page to get the new image.
« no previous file with comments | « no previous file | LayoutTests/http/tests/resources/srcset-helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698