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

Side by Side Diff: client/site_tests/factory_ExtDisplay/factory_ExtDisplay.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 # This is a factory test to test the external display (hdmi/vga/other) 10 # This is a factory test to test the external display (hdmi/vga/other)
11 # UI based heavily on factory_Display/factory_Audio 11 # UI based heavily on factory_Display/factory_Audio
12 12
13 13
14 import gtk 14 import gtk
15 import logging 15 import logging
16 import os 16 import os
17 import pango 17 import pango
18 import sys 18 import sys
19 19
20 from autotest_lib.client.bin import factory 20 from autotest_lib.client.bin import factory
21 from autotest_lib.client.bin import factory_ui_lib as ful 21 from autotest_lib.client.bin import factory_ui_lib as ful
22 from autotest_lib.client.bin import test 22 from autotest_lib.client.bin import test
23 from autotest_lib.client.common_lib import error, utils 23 from autotest_lib.client.bin import factory_error as error
24 from autotest_lib.client.common_lib import utils
24 25
25 26
26 _LABEL_STATUS_SIZE = (140, 30) 27 _LABEL_STATUS_SIZE = (140, 30)
27 _LABEL_START_STR = 'Connect headset.\n(Chinese)\n' + \ 28 _LABEL_START_STR = 'Connect headset.\n(Chinese)\n' + \
28 'Connect external display\n(Chinese)\n\nhit SPACE to start test.' 29 'Connect external display\n(Chinese)\n\nhit SPACE to start test.'
29 _LABEL_RESPONSE_STR = ful.USER_PASS_FAIL_SELECT_STR + '\n' 30 _LABEL_RESPONSE_STR = ful.USER_PASS_FAIL_SELECT_STR + '\n'
30 _VERBOSE = False 31 _VERBOSE = False
31 32
32 _SUBTEST_LIST = [ 33 _SUBTEST_LIST = [
33 ('External Display Video', 34 ('External Display Video',
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 ful.run_test_widget(self.job, vbox, 203 ful.run_test_widget(self.job, vbox,
203 window_registration_callback=self.register_callbacks) 204 window_registration_callback=self.register_callbacks)
204 205
205 failed_set = set(name for name, status in self._status_map.items() 206 failed_set = set(name for name, status in self._status_map.items()
206 if status is not ful.PASSED) 207 if status is not ful.PASSED)
207 if failed_set: 208 if failed_set:
208 raise error.TestFail('some subtests failed (%s)' % 209 raise error.TestFail('some subtests failed (%s)' %
209 ', '.join(failed_set)) 210 ', '.join(failed_set))
210 211
211 factory.log('%s run_once finished' % self.__class__) 212 factory.log('%s run_once finished' % self.__class__)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698