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

Issue 1297004: Add desktopui_IBusTest, that checks if IBus is working properly. (Closed)

Created:
10 years, 9 months ago by satorux1
Modified:
9 years, 7 months ago
Reviewers:
petkov, Yusuke Sato
CC:
chromium-os-reviews_chromium.org, kmixter1, petkov, seano, ericli, sosa, mazda
Visibility:
Public.

Description

Add desktopui_IBusTest, that checks if IBus is working properly. This is a preliminary version. We'll add more tests shortly. IBus is an input method framework used in Chromium OS. See http://www.chromium.org/chromium-os/chromiumos-design-docs/text-input for details.

Patch Set 1 #

Total comments: 14

Patch Set 2 : address comments #

Patch Set 3 : add copyright to Makefile #

Patch Set 4 : be explicit about the user name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -0 lines) Patch
A client/deps/ibusclient/README View 1 chunk +8 lines, -0 lines 0 comments Download
A client/deps/ibusclient/common.py View 1 chunk +12 lines, -0 lines 0 comments Download
A client/deps/ibusclient/control View 1 chunk +5 lines, -0 lines 0 comments Download
A client/deps/ibusclient/ibusclient.py View 1 chunk +19 lines, -0 lines 0 comments Download
A client/deps/ibusclient/src/Makefile View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A client/deps/ibusclient/src/ibusclient.cc View 1 1 chunk +16 lines, -0 lines 0 comments Download
A client/site_tests/desktopui_IBusTest/control View 1 chunk +16 lines, -0 lines 0 comments Download
A client/site_tests/desktopui_IBusTest/desktopui_IBusTest.py View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
satorux1
10 years, 9 months ago (2010-03-25 12:55:53 UTC) #1
petkov
A few mostly style issues, LGTM otherwise. Also, I'm not sure we need "Test" in ...
10 years, 9 months ago (2010-03-25 16:13:18 UTC) #2
Yusuke Sato
lgtm (supposing the issues petkov pointed out are addressed) http://codereview.chromium.org/1297004/diff/1/7 File client/deps/ibusclient/src/ibusclient.cc (right): http://codereview.chromium.org/1297004/diff/1/7#newcode6 client/deps/ibusclient/src/ibusclient.cc:6: ...
10 years, 9 months ago (2010-03-26 00:24:12 UTC) #3
satorux1
10 years, 9 months ago (2010-03-26 02:08:30 UTC) #4
Thank you for the comments! Addressed all the comments. Will submit soon.

http://codereview.chromium.org/1297004/diff/1/6
File client/deps/ibusclient/src/Makefile (right):

http://codereview.chromium.org/1297004/diff/1/6#newcode2
client/deps/ibusclient/src/Makefile:2: -I/build/x86-generic/usr/include/dbus-1.0
\
On 2010/03/25 16:13:18, petkov wrote:
> Can you use "${SYSROOT}" instead of /build/x86-generic here? This whole thing
is
> executed under the autotest ebuild so you get the Portage board-specific
> environment.
> 

Good idea. Done.

http://codereview.chromium.org/1297004/diff/1/7
File client/deps/ibusclient/src/ibusclient.cc (right):

http://codereview.chromium.org/1297004/diff/1/7#newcode6
client/deps/ibusclient/src/ibusclient.cc:6: #include <stdio.h>
On 2010/03/26 00:24:12, Yusuke Sato wrote:
> nit: unnecessary #include?
> 

Done.

http://codereview.chromium.org/1297004/diff/1/9
File client/site_tests/desktopui_IBusTest/desktopui_IBusTest.py (right):

http://codereview.chromium.org/1297004/diff/1/9#newcode5
client/site_tests/desktopui_IBusTest/desktopui_IBusTest.py:5: import logging
On 2010/03/25 16:13:18, petkov wrote:
> Per local CODING_STYLE, imports on one line.
> 

Done.

http://codereview.chromium.org/1297004/diff/1/9#newcode12
client/site_tests/desktopui_IBusTest/desktopui_IBusTest.py:12: version = 1
On 2010/03/25 16:13:18, petkov wrote:
> Per local CODING_STYLE, 4 space indent.
> 

Done.

http://codereview.chromium.org/1297004/diff/1/9#newcode19
client/site_tests/desktopui_IBusTest/desktopui_IBusTest.py:19: def
run_once(self):
On 2010/03/25 16:13:18, petkov wrote:
> Per local CODING_STYLE, two blank lines between methods.
> 

Done.

http://codereview.chromium.org/1297004/diff/1/9#newcode30
client/site_tests/desktopui_IBusTest/desktopui_IBusTest.py:30: cmd = 'su chronos
-c "DISPLAY=:0 %s"' % exefile
On 2010/03/25 16:13:18, petkov wrote:
> You should use site_ui.xcommand_as (or maybe even add xsystem_output_as :-) )
> 

Done.

http://codereview.chromium.org/1297004/diff/1/9#newcode32
client/site_tests/desktopui_IBusTest/desktopui_IBusTest.py:32:
logging.info(results)
On 2010/03/25 16:13:18, petkov wrote:
> This is what system_output's retain_output=True does -- no need to log twice.
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698