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..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) |