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

Side by Side Diff: client/site_tests/factory_Audio/factory_Audio.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
« no previous file with comments | « client/bin/factory_error.py ('k') | client/site_tests/factory_Camera/factory_Camera.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 2 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 6
7 # DESCRIPTION : 7 # DESCRIPTION :
8 # 8 #
9 # This is a factory test to test the audio. Operator will test both record and 9 # This is a factory test to test the audio. Operator will test both record and
10 # playback for headset and built-in audio. Recordings are played back for 10 # playback for headset and built-in audio. Recordings are played back for
11 # confirmation. An additional pre-recorded sample is played to confirm speakers 11 # confirmation. An additional pre-recorded sample is played to confirm speakers
12 # operate independently 12 # operate independently
13 13
14 14
15 import gtk 15 import gtk
16 import logging 16 import logging
17 import os 17 import os
18 import re 18 import re
19 import sys 19 import sys
20 20
21 from autotest_lib.client.bin import factory 21 from autotest_lib.client.bin import factory
22 from autotest_lib.client.bin import factory_ui_lib as ful 22 from autotest_lib.client.bin import factory_ui_lib as ful
23 from autotest_lib.client.bin import test 23 from autotest_lib.client.bin import test
24 from autotest_lib.client.common_lib import error, utils 24 from autotest_lib.client.bin import factory_error as error
25 from autotest_lib.client.common_lib import utils
25 26
26 27
27 _LABEL_BIG_SIZE = (280, 60) 28 _LABEL_BIG_SIZE = (280, 60)
28 _LABEL_STATUS_SIZE = (140, 30) 29 _LABEL_STATUS_SIZE = (140, 30)
29 _LABEL_START_STR = 'hit SPACE to start each audio test\n' +\ 30 _LABEL_START_STR = 'hit SPACE to start each audio test\n' +\
30 '按空白鍵開始各項聲音測試\n\n' 31 '按空白鍵開始各項聲音測試\n\n'
31 _LABEL_RESPONSE_STR = ful.USER_PASS_FAIL_SELECT_STR + '\n' 32 _LABEL_RESPONSE_STR = ful.USER_PASS_FAIL_SELECT_STR + '\n'
32 _SAMPLE_LIST = ['Headset Audio Test', 'Built-in Audio Test'] 33 _SAMPLE_LIST = ['Headset Audio Test', 'Built-in Audio Test']
33 _VERBOSE = False 34 _VERBOSE = False
34 35
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 ful.run_test_widget(self.job, self._test_widget, 212 ful.run_test_widget(self.job, self._test_widget,
212 window_registration_callback=self.register_callbacks) 213 window_registration_callback=self.register_callbacks)
213 214
214 failed_set = set(name for name, status in self._status_map.items() 215 failed_set = set(name for name, status in self._status_map.items()
215 if status is not ful.PASSED) 216 if status is not ful.PASSED)
216 if failed_set: 217 if failed_set:
217 raise error.TestFail('some samples failed (%s)' % 218 raise error.TestFail('some samples failed (%s)' %
218 ', '.join(failed_set)) 219 ', '.join(failed_set))
219 220
220 factory.log('%s run_once finished' % self.__class__) 221 factory.log('%s run_once finished' % self.__class__)
OLDNEW
« no previous file with comments | « client/bin/factory_error.py ('k') | client/site_tests/factory_Camera/factory_Camera.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698