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

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

Issue 25105004: Use srcset's resource pixel density to determine intrinsic size (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cleantests
Patch Set: Fixed crash+rebased Created 7 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
« no previous file with comments | « LayoutTests/fast/hidpi/resources/srcset.svg ('k') | LayoutTests/fast/hidpi/resources/svg_canvas_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 703b266e967682203b850d9759ac3870c624b9db..6c8182e3ce8a1458a39634313f412803b6864b38 100644
--- a/LayoutTests/fast/hidpi/resources/srcset-helper.js
+++ b/LayoutTests/fast/hidpi/resources/srcset-helper.js
@@ -13,7 +13,8 @@ function runTest() {
if (sessionStorage.pageReloaded && sessionStorage.scaleFactorIsSet) {
delete sessionStorage.pageReloaded;
delete sessionStorage.scaleFactorIsSet;
- testRunner.notifyDone();
+ if (!window.manualNotifyDone)
+ testRunner.notifyDone();
} 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 | « LayoutTests/fast/hidpi/resources/srcset.svg ('k') | LayoutTests/fast/hidpi/resources/svg_canvas_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698