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

Side by Side Diff: client/site_tests/factory_Touchpad/factory_Touchpad.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 that the touchpad 10 # Intended for use during manufacturing to validate that the touchpad
11 # is functioning properly. 11 # is functioning properly.
12 12
13 import cairo 13 import cairo
14 import gobject 14 import gobject
15 import gtk 15 import gtk
16 import time 16 import time
17 import os 17 import os
18 import sys 18 import sys
19 import subprocess 19 import subprocess
20 20
21 from cmath import pi 21 from cmath import pi
22 from gtk import gdk 22 from gtk import gdk
23 23
24 from autotest_lib.client.bin import factory 24 from autotest_lib.client.bin import factory
25 from autotest_lib.client.bin import factory_ui_lib as ful 25 from autotest_lib.client.bin import factory_ui_lib as ful
26 from autotest_lib.client.bin import test 26 from autotest_lib.client.bin import test
27 from autotest_lib.client.common_lib import error 27 from autotest_lib.client.bin import factory_error as error
28 28
29 29
30 _SYNCLIENT_SETTINGS_CMDLINE = '/usr/bin/synclient -l' 30 _SYNCLIENT_SETTINGS_CMDLINE = '/usr/bin/synclient -l'
31 _SYNCLIENT_CMDLINE = '/usr/bin/synclient -m 50' 31 _SYNCLIENT_CMDLINE = '/usr/bin/synclient -m 50'
32 32
33 _X_SEGMENTS = 5 33 _X_SEGMENTS = 5
34 _Y_SEGMENTS = 4 34 _Y_SEGMENTS = 4
35 35
36 _X_TP_OFFSET = 12 36 _X_TP_OFFSET = 12
37 _Y_TP_OFFSET = 12 37 _Y_TP_OFFSET = 12
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 synclient = SynClient(test) 287 synclient = SynClient(test)
288 288
289 ful.run_test_widget(self.job, test_widget, 289 ful.run_test_widget(self.job, test_widget,
290 cleanup_callback=synclient.quit) 290 cleanup_callback=synclient.quit)
291 291
292 missing = test.calc_missing_string() 292 missing = test.calc_missing_string()
293 if missing: 293 if missing:
294 raise error.TestFail(missing) 294 raise error.TestFail(missing)
295 295
296 factory.log('%s run_once finished' % self.__class__) 296 factory.log('%s run_once finished' % self.__class__)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698