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

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: Multiple actions on Maps benchmark. 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..8b06587bed7938a4b0a1f1e3f525f8a245a98260 100644
--- a/tools/perf/page_sets/top_25_smooth.py
+++ b/tools/perf/page_sets/top_25_smooth.py
@@ -75,6 +75,31 @@ class GoogleDocSmoothPage(top_pages.GoogleDocPage):
interaction.End()
+class GoogleMapsPage(top_pages.GoogleMapsPage):
+
+ """ Why: productivity, top google properties; drag and drop anywhere """
+
+ def RunPageInteractions(self, action_runner):
+ action_runner.WaitForElement(text='Getting around')
+ 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.75, top_end_ratio=0.75)
+ interaction.End()
+ while not action_runner._tab.HasReachedQuiescence() :
+ pass
+ 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(5)
ssid 2015/02/25 10:44:54 I had to include wait here because the HasReachedQ
+ interaction = action_runner.BeginGestureInteraction(
+ 'PinchAction', is_smooth=True)
+ action_runner.PinchPage(left_anchor_ratio=0.3, top_anchor_ratio=0.2)
+ interaction.End()
+
+
class ESPNSmoothPage(top_pages.ESPNPage):
""" Why: #1 sports """
@@ -126,6 +151,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