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

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

Issue 1013803003: [Telemetry] Remove is_smooth flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix failing test Created 5 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
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 as page_module 5 from telemetry.page import page as page_module
6 from telemetry.page import page_set as page_set_module 6 from telemetry.page import page_set as page_set_module
7 7
8 8
9 class KeyHitTestCasesPage(page_module.Page): 9 class KeyHitTestCasesPage(page_module.Page):
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 def __init__(self, page_set): 28 def __init__(self, page_set):
29 super(PaperCalculatorHitTest, self).__init__( 29 super(PaperCalculatorHitTest, self).__init__(
30 # Generated from https://github.com/zqureshi/paper-calculator 30 # Generated from https://github.com/zqureshi/paper-calculator
31 # vulcanize --inline --strip paper-calculator/demo.html 31 # vulcanize --inline --strip paper-calculator/demo.html
32 url='file://key_hit_test_cases/paper-calculator-no-rendering.html', 32 url='file://key_hit_test_cases/paper-calculator-no-rendering.html',
33 page_set=page_set) 33 page_set=page_set)
34 34
35 def TapButton(self, action_runner): 35 def TapButton(self, action_runner):
36 interaction = action_runner.BeginInteraction( 36 interaction = action_runner.BeginInteraction(
37 'Action_TapAction', is_smooth=True) 37 'Action_TapAction')
38 action_runner.TapElement(element_function=''' 38 action_runner.TapElement(element_function='''
39 document.querySelector( 39 document.querySelector(
40 'body /deep/ #outerPanels' 40 'body /deep/ #outerPanels'
41 ).querySelector( 41 ).querySelector(
42 '#standard' 42 '#standard'
43 ).shadowRoot.querySelector( 43 ).shadowRoot.querySelector(
44 'paper-calculator-key[label="5"]' 44 'paper-calculator-key[label="5"]'
45 )''') 45 )''')
46 interaction.End() 46 interaction.End()
47 47
48 48
49 class KeyHitTestCasesPageSet(page_set_module.PageSet): 49 class KeyHitTestCasesPageSet(page_set_module.PageSet):
50 50
51 def __init__(self): 51 def __init__(self):
52 super(KeyHitTestCasesPageSet, self).__init__( 52 super(KeyHitTestCasesPageSet, self).__init__(
53 user_agent_type='mobile') 53 user_agent_type='mobile')
54 54
55 self.AddUserStory(PaperCalculatorHitTest(self)) 55 self.AddUserStory(PaperCalculatorHitTest(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/key_desktop_sites.py ('k') | tools/perf/page_sets/key_mobile_sites_smooth.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698