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

Side by Side Diff: tools/perf/page_sets/system_health/searching_stories.py

Issue 2848893002: [tools/perf] Disable browse:chrome:newtab on webview (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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.system_health import platforms 5 from page_sets.system_health import platforms
6 from page_sets.system_health import story_tags 6 from page_sets.system_health import story_tags
7 from page_sets.system_health import system_health_story 7 from page_sets.system_health import system_health_story
8 8
9 from telemetry import decorators 9 from telemetry import decorators
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 url_bar.Tap() 63 url_bar.Tap()
64 action_runner.Wait(1) # user wait before typing 64 action_runner.Wait(1) # user wait before typing
65 platform.android_action_runner.InputText('drake') 65 platform.android_action_runner.InputText('drake')
66 action_runner.Wait(0.5) # user wait after typing 66 action_runner.Wait(0.5) # user wait after typing
67 platform.android_action_runner.InputKeyEvent(keyevent.KEYCODE_ENTER) 67 platform.android_action_runner.InputKeyEvent(keyevent.KEYCODE_ENTER)
68 68
69 action_runner.WaitForNavigate() 69 action_runner.WaitForNavigate()
70 action_runner.ScrollPage(use_touch=True, distance=500) 70 action_runner.ScrollPage(use_touch=True, distance=500)
71 71
72 72
73 @decorators.Disabled('android-webview') # Webview does not have new tab page.
73 class MobileNewTabPageStory(system_health_story.SystemHealthStory): 74 class MobileNewTabPageStory(system_health_story.SystemHealthStory):
74 """Story that loads new tab page and performs searches. 75 """Story that loads new tab page and performs searches.
75 76
76 For each of the search queries in |_SEARCH_TEXTS| below, this story does: 77 For each of the search queries in |_SEARCH_TEXTS| below, this story does:
77 - enter the search query on the new tab page search box 78 - enter the search query on the new tab page search box
78 - read results 79 - read results
79 - navigates back to new tab page 80 - navigates back to new tab page
80 """ 81 """
81 82
82 NAME = 'browse:chrome:newtab' 83 NAME = 'browse:chrome:newtab'
(...skipping 15 matching lines...) Expand all
98 platform.android_action_runner.InputText(keyword) 99 platform.android_action_runner.InputText(keyword)
99 platform.android_action_runner.InputKeyEvent(keyevent.KEYCODE_ENTER) 100 platform.android_action_runner.InputKeyEvent(keyevent.KEYCODE_ENTER)
100 action_runner.WaitForNavigate() 101 action_runner.WaitForNavigate()
101 action_runner.Wait(1.5) # Read results 102 action_runner.Wait(1.5) # Read results
102 action_runner.ScrollPage(use_touch=True) 103 action_runner.ScrollPage(use_touch=True)
103 action_runner.NavigateBack() 104 action_runner.NavigateBack()
104 action_runner.WaitForNavigate() 105 action_runner.WaitForNavigate()
105 106
106 app_ui.WaitForUiNode(resource_id='menu_button').Tap() 107 app_ui.WaitForUiNode(resource_id='menu_button').Tap()
107 app_ui.WaitForUiNode(resource_id='menu_item_text') 108 app_ui.WaitForUiNode(resource_id='menu_item_text')
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698