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

Side by Side Diff: tools/perf/benchmarks/text_selection.py

Issue 1428133005: [Telemetry] Allows concatenating multiple Disabled & Enabled decorators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Dave's comment Created 5 years, 1 month 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
OLDNEW
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
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'
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/tab_switching.py ('k') | tools/perf/measurements/task_execution_time_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698