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

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: 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_25_smooth.py
diff --git a/tools/perf/page_sets/top_25_smooth.py b/tools/perf/page_sets/top_25_smooth.py
index 5088a82ca23272eb828f3233c9b5cafe0cccbda2..b19a0bf8b7d5e372870fd61229fd1faa6ae3f408 100644
--- a/tools/perf/page_sets/top_25_smooth.py
+++ b/tools/perf/page_sets/top_25_smooth.py
@@ -75,6 +75,25 @@ class GoogleDocSmoothPage(top_pages.GoogleDocPage):
interaction.End()
+class GoogleMapsPage(top_pages.GoogleMapsPage):
+
+ """ Why: productivity, top google properties; Supports drag gestures """
+
+ def RunPageInteractions(self, action_runner):
+ 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()
+ # TODO(ssid): Add zoom gestures after fixing bug crbug.com/462214.
+
+
class ESPNSmoothPage(top_pages.ESPNPage):
""" Why: #1 sports """
@@ -126,6 +145,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