| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import os | 5 import os |
| 6 | 6 |
| 7 from core import path_util | 7 from core import path_util |
| 8 from core import perf_benchmark | 8 from core import perf_benchmark |
| 9 | 9 |
| 10 from telemetry import benchmark | 10 from telemetry import benchmark |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 self._blink_perf_js = f.read() | 138 self._blink_perf_js = f.read() |
| 139 | 139 |
| 140 def WillNavigateToPage(self, page, tab): | 140 def WillNavigateToPage(self, page, tab): |
| 141 del tab # unused | 141 del tab # unused |
| 142 page.script_to_evaluate_on_commit = self._blink_perf_js | 142 page.script_to_evaluate_on_commit = self._blink_perf_js |
| 143 | 143 |
| 144 def CustomizeBrowserOptions(self, options): | 144 def CustomizeBrowserOptions(self, options): |
| 145 options.AppendExtraBrowserArgs([ | 145 options.AppendExtraBrowserArgs([ |
| 146 '--js-flags=--expose_gc', | 146 '--js-flags=--expose_gc', |
| 147 '--enable-experimental-web-platform-features', | 147 '--enable-experimental-web-platform-features', |
| 148 # Note that both this flag: |
| 148 '--ignore-autoplay-restrictions', | 149 '--ignore-autoplay-restrictions', |
| 150 # and this flag: |
| 151 '--disable-gesture-requirement-for-media-playback', |
| 152 # should be used until every build from |
| 153 # ToT to Stable switches over to one flag or another. This is to support |
| 154 # reference builds. |
| 155 # --disable-gesture-requirement-for-media-playback is the old one and |
| 156 # can be removed after M60 goes to stable. |
| 149 '--enable-experimental-canvas-features', | 157 '--enable-experimental-canvas-features', |
| 150 # TODO(qinmin): After fixing crbug.com/592017, remove this command line. | 158 # TODO(qinmin): After fixing crbug.com/592017, remove this command line. |
| 151 '--reduce-security-for-testing' | 159 '--reduce-security-for-testing' |
| 152 ]) | 160 ]) |
| 153 if 'content-shell' in options.browser_type: | 161 if 'content-shell' in options.browser_type: |
| 154 options.AppendExtraBrowserArgs('--expose-internals-for-testing') | 162 options.AppendExtraBrowserArgs('--expose-internals-for-testing') |
| 155 | 163 |
| 156 def _ContinueTestRunWithTracing(self, tab): | 164 def _ContinueTestRunWithTracing(self, tab): |
| 157 tracing_categories = tab.EvaluateJavaScript( | 165 tracing_categories = tab.EvaluateJavaScript( |
| 158 'testRunner.tracingCategories') | 166 'testRunner.tracingCategories') |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 | 395 |
| 388 @benchmark.Owner(emails=['hayato@chromium.org']) | 396 @benchmark.Owner(emails=['hayato@chromium.org']) |
| 389 class BlinkPerfShadowDOM(_BlinkPerfBenchmark): | 397 class BlinkPerfShadowDOM(_BlinkPerfBenchmark): |
| 390 tag = 'shadow_dom' | 398 tag = 'shadow_dom' |
| 391 subdir = 'ShadowDOM' | 399 subdir = 'ShadowDOM' |
| 392 | 400 |
| 393 @classmethod | 401 @classmethod |
| 394 def ShouldDisable(cls, possible_browser): # http://crbug.com/702319 | 402 def ShouldDisable(cls, possible_browser): # http://crbug.com/702319 |
| 395 return possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X' | 403 return possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X' |
| 396 | 404 |
| OLD | NEW |