Commit c811ac09 authored by dbeam's avatar dbeam Committed by Commit bot

Re-enable tab switching flash energy tests.

Also add a version that runs plugin power saver.

We'd like to compare a set of flash-heavy pages with or without
plugin power saver.

R=sullivan@chromium.org
BUG=478918

Review URL: https://codereview.chromium.org/1137613002

Cr-Commit-Position: refs/heads/master@{#329314}
parent 7b70d593
...@@ -102,12 +102,26 @@ class TabSwitchingToughImageCases(benchmark.Benchmark): ...@@ -102,12 +102,26 @@ class TabSwitchingToughImageCases(benchmark.Benchmark):
return 'tab_switching.tough_image_cases' return 'tab_switching.tough_image_cases'
@benchmark.Disabled # Just for local testing, not on waterfall. @benchmark.Enabled('linux', 'mac', 'win', 'chromeos')
class TabSwitchingFlashEnergyCases(benchmark.Benchmark): class TabSwitchingFlashEnergyCases(benchmark.Benchmark):
test = tab_switching.TabSwitching test = tab_switching.TabSwitching
page_set = page_sets.FlashEnergyCasesPageSet page_set = page_sets.FlashEnergyCasesPageSet
options = {'pageset_repeat': 10} options = {'pageset_repeat': 10}
@classmethod @classmethod
def Name(cls): def Name(cls):
return 'tab_switching.flash_energy_cases' return 'tab_switching.flash_energy_cases'
@benchmark.Enabled('linux', 'mac', 'win', 'chromeos')
class TabSwitchingPluginPowerSaver(benchmark.Benchmark):
test = tab_switching.TabSwitching
page_set = page_sets.FlashEnergyCasesPageSet
options = {'pageset_repeat': 10}
def CustomizeBrowserOptions(self, options):
options.AppendExtraBrowserArgs(['--enable-plugin-power-saver'])
@classmethod
def Name(cls):
return 'tab_switching.plugin_power_saver'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment