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

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

Issue 2719853003: [Telemetry refactor] Drop "2" from method calls to JS API (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « tools/perf/page_sets/mobile_infinite_scroll_cases.py ('k') | tools/perf/page_sets/mse_cases.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 from telemetry.page import shared_page_state 5 from telemetry.page import shared_page_state
6 from telemetry import story 6 from telemetry import story
7 7
8 8
9 class MobileMemoryPage(page_module.Page): 9 class MobileMemoryPage(page_module.Page):
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 action_runner.ScrollPage() 52 action_runner.ScrollPage()
53 action_runner.Wait(3) 53 action_runner.Wait(3)
54 with action_runner.CreateGestureInteraction('ScrollAction'): 54 with action_runner.CreateGestureInteraction('ScrollAction'):
55 action_runner.ScrollPage() 55 action_runner.ScrollPage()
56 action_runner.Wait(3) 56 action_runner.Wait(3)
57 with action_runner.CreateGestureInteraction('ScrollAction'): 57 with action_runner.CreateGestureInteraction('ScrollAction'):
58 action_runner.ScrollPage() 58 action_runner.ScrollPage()
59 action_runner.Wait(3) 59 action_runner.Wait(3)
60 with action_runner.CreateGestureInteraction('ScrollAction'): 60 with action_runner.CreateGestureInteraction('ScrollAction'):
61 action_runner.ScrollPage() 61 action_runner.ScrollPage()
62 action_runner.WaitForJavaScriptCondition2( 62 action_runner.WaitForJavaScriptCondition(
63 'document.getElementById("rg_s").childElementCount > 300') 63 'document.getElementById("rg_s").childElementCount > 300')
64 64
65 65
66 class ScrollPage(MobileMemoryPage): 66 class ScrollPage(MobileMemoryPage):
67 67
68 def __init__(self, url, page_set): 68 def __init__(self, url, page_set):
69 super(ScrollPage, self).__init__(url=url, page_set=page_set) 69 super(ScrollPage, self).__init__(url=url, page_set=page_set)
70 70
71 def RunPageInteractions(self, action_runner): 71 def RunPageInteractions(self, action_runner):
72 with action_runner.CreateGestureInteraction('ScrollAction'): 72 with action_runner.CreateGestureInteraction('ScrollAction'):
(...skipping 16 matching lines...) Expand all
89 # Why: Renderer process memory bloat 89 # Why: Renderer process memory bloat
90 'http://techcrunch.com', 90 'http://techcrunch.com',
91 # pylint: disable=line-too-long 91 # pylint: disable=line-too-long
92 'http://techcrunch.com/2014/02/17/pixel-brings-brings-old-school-video-gam e-art-to-life-in-your-home/', 92 'http://techcrunch.com/2014/02/17/pixel-brings-brings-old-school-video-gam e-art-to-life-in-your-home/',
93 'http://techcrunch.com/2014/02/15/kickstarter-coins-2/', 93 'http://techcrunch.com/2014/02/15/kickstarter-coins-2/',
94 'http://techcrunch.com/2014/02/15/was-y-combinator-worth-it/', 94 'http://techcrunch.com/2014/02/15/was-y-combinator-worth-it/',
95 ] 95 ]
96 96
97 for url in urls_list: 97 for url in urls_list:
98 self.AddStory(ScrollPage(url, self)) 98 self.AddStory(ScrollPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/mobile_infinite_scroll_cases.py ('k') | tools/perf/page_sets/mse_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698