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

Unified Diff: tools/perf/page_sets/top_pages.py

Issue 955653003: Adding Maps page to page_sets for telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mousedrag2
Patch Set: Fixing the archive file. Created 5 years, 10 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: tools/perf/page_sets/top_pages.py
diff --git a/tools/perf/page_sets/top_pages.py b/tools/perf/page_sets/top_pages.py
index 582cf986c3730dc44f3ddabebf83542cf59e1f6e..95caa53920d702b4698ed397a0eb653dc9e09b72 100644
--- a/tools/perf/page_sets/top_pages.py
+++ b/tools/perf/page_sets/top_pages.py
@@ -98,6 +98,27 @@ class GoogleDocPage(TopPages):
action_runner.WaitForJavaScriptCondition(
'document.getElementsByClassName("kix-appview-editor").length')
+class GoogleMapsPage(TopPages):
+
+ """ Why: productivity, top google properties; Supports drag gesturee """
+
+ def __init__(self, page_set):
+ super(GoogleMapsPage, self).__init__(
+ url='https://www.google.co.uk/maps/@51.5043968,-0.1526806',
+ page_set=page_set,
+ name='Maps')
+
+ def RunNavigateSteps(self, action_runner):
+ super(GoogleMapsPage, self).RunNavigateSteps(action_runner)
+ action_runner.WaitForElement(selector='.widget-scene-canvas')
+ action_runner.WaitForElement(selector='.widget-zoom-in')
+ action_runner.WaitForElement(selector='.widget-zoom-out')
+
+ # Disabled on android since desktop record of maps doesn't load in android.
+ def CanRunOnBrowser(self, browser_info):
+ return (browser_info._browser._platform_backend.platform.GetOSName() !=
+ 'android')
+
class GooglePlusPage(TopPages):

Powered by Google App Engine
This is Rietveld 408576698