Fix reading period and range of light sensor

This commit fix the bug in factory_LightSensor test.
1.Change the reading period of ALS from 0.3 to 0.6 to fix the bug that gtk
can not redraw properly. Reading period less than 0.5 secwill cause gtk
fail to draw every time. Setting reading period to 0.6 sec and can
successfully draw gtk with a 0.1 sec margin.
2.Add a range_value argument to the test, the test can modify range
value of the light sensor.
This test need another CL on the test_list to run.

BUG=chrome-os-partner:10012, 10013
TEST=run factory_LightSensor test on snow board with modified test_list

Change-Id: I9bdea3a04c0ad54db0249ce491af600135659b50
Reviewed-on: https://gerrit.chromium.org/gerrit/23882
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
1 file changed