aboutsummaryrefslogtreecommitdiff
path: root/client/site_tests/power_Display/control.cabc
blob: 1558403cc2153dfd21270f1f4ccb2551e0bc4e5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
AUTHOR = "ChromeOS Team"
NAME = "power_Display.cabc"
PURPOSE = "Measure display power usage."

CRITERIA = "This test is a benchmark."
TIME = "SHORT"
TEST_CATEGORY = "Benchmark"
TEST_CLASS = "power"
TEST_TYPE = "client"
PY_VERSION = 3

DOC = """
This test records power related statistics while displaying different static
pages using settings that usually utilize panel CABC algorithm.
"""

CABC_PAGES = ['white', 'black',
              'white', 'grey10',
              'white', 'grey20',
              'white', 'grey30',
              'white', 'grey40',
              'white', 'grey50',
              'white', 'checker1',
              'white', 'checker90',
              'white', 'checker80',
              'white', 'checker70',
              'white', 'checker60',
              'white', 'checker50']

args_dict = utils.args_to_dict(args)
pdash_note = args_dict.get('pdash_note', '')
job.run_test('power_Display', tag=NAME.split('.')[1], pages=CABC_PAGES,
             secs_per_page=20, seconds_period=1, pdash_note=pdash_note)