Chromium Code Reviews| 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) |