OLD | NEW |
(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() |
OLD | NEW |