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

Side by Side Diff: tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py

Issue 884573004: Check the context type in StopChromeTracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable test Created 5 years, 10 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/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py ('k') | 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 2015 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
5 from telemetry import decorators
6 from telemetry.core.platform import tracing_category_filter
7 from telemetry.core.platform import tracing_options
8 from telemetry.unittest_util import tab_test_case
9
10 class TracingControllerTest(tab_test_case.TabTestCase):
11 # Disabled due to http://crbug.com/459807
12 @decorators.Disabled
13 @decorators.Isolated
14 def testModifiedConsoleTime(self):
15 category_filter = tracing_category_filter.TracingCategoryFilter()
16 options = tracing_options.TracingOptions()
17 options.enable_chrome_trace = True
18 self._tab.browser.platform.tracing_controller.Start(options,
19 category_filter)
20 self.Navigate('blank.html')
21 self.assertEquals(
22 self._tab.EvaluateJavaScript('document.location.pathname;'),
23 '/blank.html')
24 self._tab.EvaluateJavaScript('console.time = function() { };')
25 with self.assertRaisesRegexp(Exception, 'Page stomped on console.time'):
26 self._tab.browser.platform.tracing_controller.Stop()
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698