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

Side by Side Diff: tools/perf/page_sets/google_pages.py

Issue 2917313003: Verify explicitly set names for memory benchmarks (Closed)
Patch Set: Created 3 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 4
5 from page_sets.login_helpers import google_login 5 from page_sets.login_helpers import google_login
6 6
7 from telemetry.page import page as page_module 7 from telemetry.page import page as page_module
8 from telemetry.page import shared_page_state 8 from telemetry.page import shared_page_state
9 9
10 import os 10 import os
(...skipping 13 matching lines...) Expand all
24 self.credentials = credentials 24 self.credentials = credentials
25 self.script_to_evaluate_on_commit = _DeterministicPerformanceCounters() 25 self.script_to_evaluate_on_commit = _DeterministicPerformanceCounters()
26 26
27 27
28 class GmailPage(GooglePages): 28 class GmailPage(GooglePages):
29 def __init__(self, page_set, 29 def __init__(self, page_set,
30 shared_page_state_class=shared_page_state.SharedPageState): 30 shared_page_state_class=shared_page_state.SharedPageState):
31 super(GmailPage, self).__init__( 31 super(GmailPage, self).__init__(
32 url='https://mail.google.com/mail/', 32 url='https://mail.google.com/mail/',
33 page_set=page_set, 33 page_set=page_set,
34 shared_page_state_class=shared_page_state_class) 34 shared_page_state_class=shared_page_state_class,
35 name='https://mail.google.com/mail/')
35 36
36 def RunNavigateSteps(self, action_runner): 37 def RunNavigateSteps(self, action_runner):
37 google_login.LoginGoogleAccount(action_runner, 'google', 38 google_login.LoginGoogleAccount(action_runner, 'google',
38 self.credentials_path) 39 self.credentials_path)
39 super(GmailPage, self).RunNavigateSteps(action_runner) 40 super(GmailPage, self).RunNavigateSteps(action_runner)
40 action_runner.WaitForJavaScriptCondition( 41 action_runner.WaitForJavaScriptCondition(
41 'window.gmonkey !== undefined &&' 42 'window.gmonkey !== undefined &&'
42 'document.getElementById("gb") !== null') 43 'document.getElementById("gb") !== null')
43 44
44 class GoogleDocPage(GooglePages): 45 class GoogleDocPage(GooglePages):
45 def __init__(self, page_set, 46 def __init__(self, page_set,
46 shared_page_state_class=shared_page_state.SharedPageState): 47 shared_page_state_class=shared_page_state.SharedPageState):
47 super(GoogleDocPage, self).__init__( 48 super(GoogleDocPage, self).__init__(
48 # pylint: disable=line-too-long 49 # pylint: disable=line-too-long
49 url='https://docs.google.com/document/d/1X-IKNjtEnx-WW5JIKRLsyhz5sbsat3m fTpAPUSX3_s4/view', 50 url='https://docs.google.com/document/d/1X-IKNjtEnx-WW5JIKRLsyhz5sbsat3m fTpAPUSX3_s4/view',
50 page_set=page_set, 51 page_set=page_set,
51 shared_page_state_class=shared_page_state_class) 52 shared_page_state_class=shared_page_state_class)
52 53
53 def RunNavigateSteps(self, action_runner): 54 def RunNavigateSteps(self, action_runner):
54 google_login.LoginGoogleAccount(action_runner, 'google', 55 google_login.LoginGoogleAccount(action_runner, 'google',
55 self.credentials_path) 56 self.credentials_path)
56 super(GoogleDocPage, self).RunNavigateSteps(action_runner) 57 super(GoogleDocPage, self).RunNavigateSteps(action_runner)
57 action_runner.Wait(2) 58 action_runner.Wait(2)
58 action_runner.WaitForJavaScriptCondition( 59 action_runner.WaitForJavaScriptCondition(
59 'document.getElementsByClassName("kix-appview-editor").length') 60 'document.getElementsByClassName("kix-appview-editor").length')
OLDNEW
« no previous file with comments | « tools/perf/page_sets/blink_memory_mobile.py ('k') | tools/perf/page_sets/long_running_idle_google_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698