1 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 AUTHOR = "sque" 6 NAME = "power_BacklightControl" 7 PURPOSE = "Verify the backlight controller functions properly." 8 CRITERIA = """ 9 Fail if any of the following occur: 10 - The backlight cannot be turned all the way to max using powerd. 11 - The backlight cannot be turned all the way down to minimum and zero using 12 powerd. 13 - The screen cannot be turned on/off by setting backlight to 0 and nonzero, 14 respectively, using powerd. 15 - There are too many steps (> 16) between min and max brightness. 16 """ 17 TIME = "SHORT" 18 TEST_CATEGORY = "Functional" 19 TEST_CLASS = "power" 20 TEST_TYPE = "client" 21 22 DOC = """ 23 This test verifies that the backlight controller can adjust brightness up and 24 down over the full range, as well as turn screen on/off. 25 """ 26 27 job.run_test("power_BacklightControl") 28