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

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

Issue 955653003: Adding Maps page to page_sets for telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mousedrag2
Patch Set: Disabled for android. 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_25_smooth.py
diff --git a/tools/perf/page_sets/top_25_smooth.py b/tools/perf/page_sets/top_25_smooth.py
index cf5d8fc0ae660c0af1d6a3cda70c6e117be62ec6..e8baadbc9b5f06bd8a9894b0edbf9b961851d786 100644
--- a/tools/perf/page_sets/top_25_smooth.py
+++ b/tools/perf/page_sets/top_25_smooth.py
@@ -75,6 +75,28 @@ class GoogleDocSmoothPage(top_pages.GoogleDocPage):
interaction.End()
+class GoogleMapsPage(top_pages.GoogleMapsPage):
+
+ """ Why: productivity, top google properties; drag and drop anywhere """
Sami 2015/02/27 15:33:05 Not sure what you mean by "drag and drop anywhere"
ssid 2015/02/27 15:52:04 I wrote drag and drop anywhere in sense that you c
Sami 2015/02/27 16:02:32 Sorry, I was just confused because "drag & drop" m
ssid 2015/03/02 12:03:27 Done.
+
+ def RunPageInteractions(self, action_runner):
+ action_runner.WaitForElement(selector='.widget-scene-canvas')
+ action_runner.WaitForElement(selector='.widget-zoom-in')
+ action_runner.WaitForElement(selector='.widget-zoom-out')
+ action_runner.Wait(2)
Sami 2015/02/27 15:33:05 All this waiting should be done in RunNavigateStep
ssid 2015/03/02 12:03:27 Done.
+ interaction = action_runner.BeginGestureInteraction(
+ 'DragAction', is_smooth=True)
+ action_runner.DragPage(left_start_ratio=0.5, top_start_ratio=0.75,
+ left_end_ratio=0.75, top_end_ratio=0.5)
+ interaction.End()
+ action_runner.Wait(2)
+ interaction = action_runner.BeginGestureInteraction(
+ 'DragAction', is_smooth=True)
+ action_runner.DragPage(left_start_ratio=0.5, top_start_ratio=0.5,
+ left_end_ratio=0.35, top_end_ratio=0.75)
+ interaction.End()
Sami 2015/02/27 15:33:05 Could you add a TODO here about doing a zoom gestu
ssid 2015/03/02 12:03:27 Done.
+
+
class ESPNSmoothPage(top_pages.ESPNPage):
""" Why: #1 sports """
@@ -126,6 +148,7 @@ class Top25SmoothPageSet(page_set_module.PageSet):
top_pages.WeatherPage)(self))
self.AddUserStory(_CreatePageClassWithSmoothInteractions(
top_pages.YahooGamesPage)(self))
+ self.AddUserStory(GoogleMapsPage(self))
other_urls = [
# Why: #1 news worldwide (Alexa global)

Powered by Google App Engine
This is Rietveld 408576698