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 from telemetry import test | 5 from telemetry import benchmark |
6 | 6 |
7 from measurements import tab_switching | 7 from measurements import tab_switching |
8 import page_sets | 8 import page_sets |
9 | 9 |
10 | 10 |
11 @test.Enabled('has tabs') | 11 @benchmark.Enabled('has tabs') |
12 class TabSwitchingTop10(test.Test): | 12 class TabSwitchingTop10(benchmark.Benchmark): |
13 test = tab_switching.TabSwitching | 13 test = tab_switching.TabSwitching |
14 page_set = page_sets.Top10PageSet | 14 page_set = page_sets.Top10PageSet |
15 | 15 |
16 | 16 |
17 @test.Enabled('has tabs') | 17 @benchmark.Enabled('has tabs') |
18 class TabSwitchingTypical25(test.Test): | 18 class TabSwitchingTypical25(benchmark.Benchmark): |
19 test = tab_switching.TabSwitching | 19 test = tab_switching.TabSwitching |
20 page_set = page_sets.Typical25PageSet | 20 page_set = page_sets.Typical25PageSet |
21 | 21 |
22 | 22 |
23 @test.Enabled('has tabs') | 23 @benchmark.Enabled('has tabs') |
24 class TabSwitchingFiveBlankTabs(test.Test): | 24 class TabSwitchingFiveBlankTabs(benchmark.Benchmark): |
25 test = tab_switching.TabSwitching | 25 test = tab_switching.TabSwitching |
26 page_set = page_sets.FiveBlankPagesPageSet | 26 page_set = page_sets.FiveBlankPagesPageSet |
27 options = {'pageset_repeat': 10} | 27 options = {'pageset_repeat': 10} |
28 | 28 |
29 | 29 |
30 @test.Enabled('has tabs') | 30 @benchmark.Enabled('has tabs') |
31 class TabSwitchingToughEnergyCases(test.Test): | 31 class TabSwitchingToughEnergyCases(benchmark.Benchmark): |
32 test = tab_switching.TabSwitching | 32 test = tab_switching.TabSwitching |
33 page_set = page_sets.ToughEnergyCasesPageSet | 33 page_set = page_sets.ToughEnergyCasesPageSet |
34 options = {'pageset_repeat': 10} | 34 options = {'pageset_repeat': 10} |
OLD | NEW |