| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 from core import perf_benchmark | 5 from core import perf_benchmark |
| 6 | 6 |
| 7 from telemetry import benchmark | 7 from telemetry import benchmark |
| 8 from telemetry.timeline import tracing_category_filter | 8 from telemetry.timeline import tracing_category_filter |
| 9 from telemetry.web_perf import timeline_based_measurement | 9 from telemetry.web_perf import timeline_based_measurement |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 return 'text_selection' | 30 return 'text_selection' |
| 31 | 31 |
| 32 @classmethod | 32 @classmethod |
| 33 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 33 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
| 34 if 'text-selection' not in value.name: | 34 if 'text-selection' not in value.name: |
| 35 return False | 35 return False |
| 36 return value.values != None | 36 return value.values != None |
| 37 | 37 |
| 38 | 38 |
| 39 # See crbug.com/519044 | 39 # See crbug.com/519044 |
| 40 @benchmark.Disabled() | 40 @benchmark.Disabled('all') |
| 41 class TextSelectionDirection(_TextSelection): | 41 class TextSelectionDirection(_TextSelection): |
| 42 """Measure text selection metrics while dragging a touch selection handle on a | 42 """Measure text selection metrics while dragging a touch selection handle on a |
| 43 subset of top ten mobile sites and using the 'direction' touch selection | 43 subset of top ten mobile sites and using the 'direction' touch selection |
| 44 strategy.""" | 44 strategy.""" |
| 45 def SetExtraBrowserOptions(self, options): | 45 def SetExtraBrowserOptions(self, options): |
| 46 options.AppendExtraBrowserArgs(['--touch-selection-strategy=direction']) | 46 options.AppendExtraBrowserArgs(['--touch-selection-strategy=direction']) |
| 47 | 47 |
| 48 @classmethod | 48 @classmethod |
| 49 def Name(cls): | 49 def Name(cls): |
| 50 return 'text_selection.direction' | 50 return 'text_selection.direction' |
| 51 | 51 |
| 52 | 52 |
| 53 # See crbug.com/519044 | 53 # See crbug.com/519044 |
| 54 @benchmark.Disabled() | 54 @benchmark.Disabled('all') |
| 55 class TextSelectionCharacter(_TextSelection): | 55 class TextSelectionCharacter(_TextSelection): |
| 56 """Measure text selection metrics while dragging a touch selection handle on a | 56 """Measure text selection metrics while dragging a touch selection handle on a |
| 57 subset of top ten mobile sites and using the 'character' touch selection | 57 subset of top ten mobile sites and using the 'character' touch selection |
| 58 strategy.""" | 58 strategy.""" |
| 59 def SetExtraBrowserOptions(self, options): | 59 def SetExtraBrowserOptions(self, options): |
| 60 options.AppendExtraBrowserArgs(['--touch-selection-strategy=character']) | 60 options.AppendExtraBrowserArgs(['--touch-selection-strategy=character']) |
| 61 | 61 |
| 62 @classmethod | 62 @classmethod |
| 63 def Name(cls): | 63 def Name(cls): |
| 64 return 'text_selection.character' | 64 return 'text_selection.character' |
| OLD | NEW |