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

Side by Side Diff: tools/perf/page_sets/top_pages.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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 5
6 6
7 class TopPages(page_module.Page): 7 class TopPages(page_module.Page):
8 8
9 def __init__(self, url, page_set, name='', credentials=None): 9 def __init__(self, url, page_set, name='', credentials=None):
10 super(TopPages, self).__init__( 10 super(TopPages, self).__init__(
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 name='Docs (1 open document tab)', 92 name='Docs (1 open document tab)',
93 credentials='google') 93 credentials='google')
94 94
95 def RunNavigateSteps(self, action_runner): 95 def RunNavigateSteps(self, action_runner):
96 super(GoogleDocPage, self).RunNavigateSteps(action_runner) 96 super(GoogleDocPage, self).RunNavigateSteps(action_runner)
97 action_runner.Wait(2) 97 action_runner.Wait(2)
98 action_runner.WaitForJavaScriptCondition( 98 action_runner.WaitForJavaScriptCondition(
99 'document.getElementsByClassName("kix-appview-editor").length') 99 'document.getElementsByClassName("kix-appview-editor").length')
100 100
101 101
102 class GoogleMapsPage(TopPages):
103
104 """ Why: productivity, top google properties; drag and drop anywhere """
105
106 def __init__(self, page_set):
107 super(GoogleMapsPage, self).__init__(
108 url='https://www.google.com/maps',
109 page_set=page_set,
110 name='Maps')
111
112
102 class GooglePlusPage(TopPages): 113 class GooglePlusPage(TopPages):
103 114
104 """ Why: social; top google property; Public profile; infinite scrolls """ 115 """ Why: social; top google property; Public profile; infinite scrolls """
105 116
106 def __init__(self, page_set): 117 def __init__(self, page_set):
107 super(GooglePlusPage, self).__init__( 118 super(GooglePlusPage, self).__init__(
108 url='https://plus.google.com/110031535020051778989/posts', 119 url='https://plus.google.com/110031535020051778989/posts',
109 page_set=page_set, 120 page_set=page_set,
110 credentials='google') 121 credentials='google')
111 122
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 """ Why: #1 games according to Alexa (with actual games in it) """ 261 """ Why: #1 games according to Alexa (with actual games in it) """
251 262
252 def __init__(self, page_set): 263 def __init__(self, page_set):
253 super(YahooGamesPage, self).__init__( 264 super(YahooGamesPage, self).__init__(
254 url='http://games.yahoo.com', 265 url='http://games.yahoo.com',
255 page_set=page_set) 266 page_set=page_set)
256 267
257 def RunNavigateSteps(self, action_runner): 268 def RunNavigateSteps(self, action_runner):
258 super(YahooGamesPage, self).RunNavigateSteps(action_runner) 269 super(YahooGamesPage, self).RunNavigateSteps(action_runner)
259 action_runner.Wait(2) 270 action_runner.Wait(2)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698