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

Side by Side Diff: client/site_tests/factory_Display/factory_Display.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 LCD display. 10 # This is a factory test to test the LCD display.
11 11
12 12
13 import gtk 13 import gtk
14 import pango 14 import pango
15 import os 15 import os
16 import sys 16 import sys
17 17
18 from gtk import gdk 18 from gtk import gdk
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 23 from autotest_lib.client.bin import factory_error as error
24 24
25 25
26 _LABEL_SIZE = (180, 30) 26 _LABEL_SIZE = (180, 30)
27 _LABEL_UNTESTED_FG = gtk.gdk.color_parse('grey40') 27 _LABEL_UNTESTED_FG = gtk.gdk.color_parse('grey40')
28 28
29 _MESSAGE_STR = ('hold SPACE to display pattern,\n' + 29 _MESSAGE_STR = ('hold SPACE to display pattern,\n' +
30 'hit TAB to fail and ENTER to pass\n' + 30 'hit TAB to fail and ENTER to pass\n' +
31 '壓住空白鍵以顯示檢查用的圖樣,\n' + 31 '壓住空白鍵以顯示檢查用的圖樣,\n' +
32 '錯誤請按 TAB,成功請按 ENTER\n') 32 '錯誤請按 TAB,成功請按 ENTER\n')
33 33
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 window_registration_callback=self.register_callbacks) 174 window_registration_callback=self.register_callbacks)
175 175
176 failed_set = set(name for name, status in self._status_map.items() 176 failed_set = set(name for name, status in self._status_map.items()
177 if status is not ful.PASSED) 177 if status is not ful.PASSED)
178 if failed_set: 178 if failed_set:
179 raise error.TestFail('some patterns failed\n' \ 179 raise error.TestFail('some patterns failed\n' \
180 '以下圖樣測試未通過: %s' % 180 '以下圖樣測試未通過: %s' %
181 ', '.join(failed_set)) 181 ', '.join(failed_set))
182 182
183 factory.log('%s run_once finished' % self.__class__) 183 factory.log('%s run_once finished' % self.__class__)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698