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

Unified Diff: tools/telemetry/telemetry/internal/actions/gesture_common.js

Issue 1400213002: Update telemetry tests that rely on window.innerWidth/Height. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « third_party/WebKit/public/web/WebView.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/internal/actions/gesture_common.js
diff --git a/tools/telemetry/telemetry/internal/actions/gesture_common.js b/tools/telemetry/telemetry/internal/actions/gesture_common.js
index 2e17fa2b69e81fb7f7ccecebc1573a7f27c4d421..d6dcd9c73acb4c83f3fdd0bf428b310f977dc0ad 100644
--- a/tools/telemetry/telemetry/internal/actions/gesture_common.js
+++ b/tools/telemetry/telemetry/internal/actions/gesture_common.js
@@ -39,8 +39,10 @@
rect.left = 0;
}
- var outsideHeight = (rect.top + rect.height) - window.innerHeight;
- var outsideWidth = (rect.left + rect.width) - window.innerWidth;
+ var outsideHeight = (rect.top + rect.height) -
+ chrome.gpuBenchmarking.visualViewportHeight();
Sami 2015/10/14 10:44:38 Some telemetry tests run against older reference b
ymalik 2015/10/14 15:56:10 Done. We do have plans in the future (perhaps ne
+ var outsideWidth = (rect.left + rect.width) -
+ chrome.gpuBenchmarking.visualViewportWidth();
if (outsideHeight > 0) {
rect.height -= outsideHeight;
« no previous file with comments | « third_party/WebKit/public/web/WebView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698