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

Side by Side Diff: tools/perf/core/about_tracing_integration_test.py

Issue 2189603002: [tools/perf] Add integration test for about://tracing UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable test on windows Created 4 years, 4 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
(Empty)
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
3 # found in the LICENSE file.
4 from telemetry import decorators
5 from telemetry.testing import tab_test_case
6
7
8 class AboutTracingIntegrationTest(tab_test_case.TabTestCase):
9
10 @decorators.Disabled('android',
11 'win') # crbug.com/630030
12 def testBasicTraceRecording(self):
13 action_runner = self._tab.action_runner
14 action_runner.Navigate('chrome://tracing')
15
16 # Click 'record' to trigger record selection diaglog.
17 action_runner.WaitForElement(selector='#record-button')
18 action_runner.ClickElement(selector='#record-button')
19
20 # Wait for record selection diaglog to pop up, then click record.
21 action_runner.WaitForElement(selector='.overlay')
22 action_runner.ClickElement(
23 element_function=("document.querySelector('.overlay').shadowRoot."
24 "querySelectorAll('button')[0]"))
25
26 # Stop recording after 1 seconds.
27 action_runner.Wait(1)
28 action_runner.ClickElement(
29 element_function=
30 "document.querySelector('.overlay').querySelector('button')")
31
32 # Make sure that we can see the browser track.
33 action_runner.WaitForElement(selector='div[title~="Browser"]')
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