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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py
diff --git a/tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py b/tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py
new file mode 100644
index 0000000000000000000000000000000000000000..9730794dfa579fa176c8957f50b80c341b89be7f
--- /dev/null
+++ b/tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py
@@ -0,0 +1,26 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from telemetry import decorators
+from telemetry.core.platform import tracing_category_filter
+from telemetry.core.platform import tracing_options
+from telemetry.unittest_util import tab_test_case
+
+class TracingControllerTest(tab_test_case.TabTestCase):
+ # Disabled due to http://crbug.com/459807
+ @decorators.Disabled
+ @decorators.Isolated
+ def testModifiedConsoleTime(self):
+ category_filter = tracing_category_filter.TracingCategoryFilter()
+ options = tracing_options.TracingOptions()
+ options.enable_chrome_trace = True
+ self._tab.browser.platform.tracing_controller.Start(options,
+ category_filter)
+ self.Navigate('blank.html')
+ self.assertEquals(
+ self._tab.EvaluateJavaScript('document.location.pathname;'),
+ '/blank.html')
+ self._tab.EvaluateJavaScript('console.time = function() { };')
+ with self.assertRaisesRegexp(Exception, 'Page stomped on console.time'):
+ self._tab.browser.platform.tracing_controller.Stop()
« 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