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

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

Issue 1198823004: Update perf page_set to use story_set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « tools/perf/page_sets/key_desktop_sites.py ('k') | tools/perf/page_sets/key_idle_power_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 4
5 from telemetry.page import page_set as page_set_module 5 from page_sets import polymer
6 from telemetry import story
6 7
7 from page_sets import polymer
8 8
9 class PaperCalculatorHitTest(polymer.PolymerPage): 9 class PaperCalculatorHitTest(polymer.PolymerPage):
10 10
11 def __init__(self, page_set): 11 def __init__(self, page_set):
12 super(PaperCalculatorHitTest, self).__init__( 12 super(PaperCalculatorHitTest, self).__init__(
13 # Generated from https://github.com/zqureshi/paper-calculator 13 # Generated from https://github.com/zqureshi/paper-calculator
14 # vulcanize --inline --strip paper-calculator/demo.html 14 # vulcanize --inline --strip paper-calculator/demo.html
15 url='file://key_hit_test_cases/paper-calculator-no-rendering.html', 15 url='file://key_hit_test_cases/paper-calculator-no-rendering.html',
16 page_set=page_set, run_no_page_interactions=False) 16 page_set=page_set, run_no_page_interactions=False)
17 17
(...skipping 12 matching lines...) Expand all
30 'window.__tapTarget != null') 30 'window.__tapTarget != null')
31 31
32 for _ in xrange(100): 32 for _ in xrange(100):
33 self.TapButton(action_runner) 33 self.TapButton(action_runner)
34 34
35 def TapButton(self, action_runner): 35 def TapButton(self, action_runner):
36 with action_runner.CreateInteraction('Action_TapAction'): 36 with action_runner.CreateInteraction('Action_TapAction'):
37 action_runner.TapElement(element_function='''window.__tapTarget''') 37 action_runner.TapElement(element_function='''window.__tapTarget''')
38 38
39 39
40 class KeyHitTestCasesPageSet(page_set_module.PageSet): 40 class KeyHitTestCasesPageSet(story.StorySet):
41 41
42 def __init__(self): 42 def __init__(self):
43 super(KeyHitTestCasesPageSet, self).__init__() 43 super(KeyHitTestCasesPageSet, self).__init__()
44 44
45 self.AddUserStory(PaperCalculatorHitTest(self)) 45 self.AddUserStory(PaperCalculatorHitTest(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/key_desktop_sites.py ('k') | tools/perf/page_sets/key_idle_power_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698