Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: client/site_tests/factory_DeveloperRecovery/factory_DeveloperRecovery.py

Issue 3438007: Replace newline characters in factory tests (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Address review comments Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 # 2 #
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 7
8 # DESCRIPTION : 8 # DESCRIPTION :
9 # 9 #
10 # Intended for use during manufacturing to validate Developer mode 10 # Intended for use during manufacturing to validate Developer mode
11 # switch and Recovery button function properly. This program will 11 # switch and Recovery button function properly. This program will
12 # display an image of the d-housing with Developer switch and Recovery 12 # display an image of the d-housing with Developer switch and Recovery
13 # button. Operator will then be instructed via text and visually to 13 # button. Operator will then be instructed via text and visually to
14 # switch and restore the Developer switch and press/release the 14 # switch and restore the Developer switch and press/release the
15 # Recovery button. Success at each step resets a 20 second countdown timer. 15 # Recovery button. Success at each step resets a 20 second countdown timer.
16 16
17 17
18 import cairo 18 import cairo
19 import gobject 19 import gobject
20 import gtk 20 import gtk
21 import sys 21 import sys
22 import time 22 import time
23 import os 23 import os
24 import math 24 import math
25 25
26 from autotest_lib.client.bin import factory 26 from autotest_lib.client.bin import factory
27 from autotest_lib.client.bin import factory_ui_lib as ful 27 from autotest_lib.client.bin import factory_ui_lib as ful
28 from autotest_lib.client.bin import test 28 from autotest_lib.client.bin import test
29 from autotest_lib.client.common_lib import error 29 from autotest_lib.client.bin import factory_error as error
30 from autotest_lib.client.common_lib import utils 30 from autotest_lib.client.common_lib import utils
31 31
32 32
33 class DevRecTest(object): 33 class DevRecTest(object):
34 gpio_info = { 34 gpio_info = {
35 # Note, names are NOT arbitrary. Will need to change gpio_setup before 35 # Note, names are NOT arbitrary. Will need to change gpio_setup before
36 # modifying 36 # modifying
37 'developer_switch' : {'type' : 'switch', 37 'developer_switch' : {'type' : 'switch',
38 'cx' : 475, 38 'cx' : 475,
39 'cy' : 375, 39 'cy' : 375,
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 drawing_area.set_size_request(*image_size) 340 drawing_area.set_size_request(*image_size)
341 drawing_area.connect('expose_event', test.expose_event) 341 drawing_area.connect('expose_event', test.expose_event)
342 drawing_area.add_events(gtk.gdk.EXPOSURE_MASK) 342 drawing_area.add_events(gtk.gdk.EXPOSURE_MASK)
343 gobject.timeout_add(200, test.timer_event, drawing_area) 343 gobject.timeout_add(200, test.timer_event, drawing_area)
344 344
345 test.start_countdown(test.timeout) 345 test.start_countdown(test.timeout)
346 346
347 ful.run_test_widget(self.job, drawing_area) 347 ful.run_test_widget(self.job, drawing_area)
348 348
349 factory.log('%s run_once finished' % self.__class__) 349 factory.log('%s run_once finished' % self.__class__)
OLDNEW
« no previous file with comments | « client/site_tests/factory_Camera/factory_Camera.py ('k') | client/site_tests/factory_Display/factory_Display.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698