Merge lp:~brandontschaefer/unity/ibus-anthy-autopilot into lp:unity

Proposed by Brandon Schaefer
Status: Merged
Merged at revision: 2163
Proposed branch: lp:~brandontschaefer/unity/ibus-anthy-autopilot
Merge into: lp:unity
Diff against target: 25 lines (+4/-4)
1 file modified
tests/autopilot/autopilot/tests/test_ibus.py (+4/-4)
To merge this branch: bzr merge lp:~brandontschaefer/unity/ibus-anthy-autopilot
Reviewer Review Type Date Requested Status
Unity Team Pending
Review via email: mp+98933@code.launchpad.net

Commit message

Adds autopilot test for using 'Enter' to commit preedit text in ibus-anthy.

Description of the change

ibus-anthy uses Enter to commit preedit text as well, so updated autopilot test to show this works. This is tied to this branch: https://code.launchpad.net/~vbkaisetsu/nux/bug954901/+merge/97379

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/autopilot/tests/test_ibus.py'
2--- tests/autopilot/autopilot/tests/test_ibus.py 2012-02-26 20:40:15 +0000
3+++ tests/autopilot/autopilot/tests/test_ibus.py 2012-03-22 21:52:25 +0000
4@@ -100,9 +100,9 @@
5 """Tests for the Anthy(Japanese) input engine."""
6
7 scenarios = [
8- ('system', {'input': 'shisutemu ', 'result': u'\u30b7\u30b9\u30c6\u30e0'}),
9- ('game', {'input': 'ge-mu ', 'result': u'\u30b2\u30fc\u30e0'}),
10- ('user', {'input': 'yu-za- ', 'result': u'\u30e6\u30fc\u30b6\u30fc'}),
11+ ('system', {'commit_key': 'Ctrl+j', 'input': 'shisutemu ', 'result': u'\u30b7\u30b9\u30c6\u30e0'}),
12+ ('game', {'commit_key': 'Enter' ,'input': 'ge-mu ', 'result': u'\u30b2\u30fc\u30e0'}),
13+ ('user', {'commit_key': 'Enter','input': 'yu-za- ', 'result': u'\u30e6\u30fc\u30b6\u30fc'}),
14 ]
15
16 def test_simple_input(self):
17@@ -112,7 +112,7 @@
18 self.activate_ibus()
19 sleep(0.5)
20 self.kb.type(self.input)
21- self.kb.press_and_release("Ctrl+j")
22+ self.kb.press_and_release(self.commit_key)
23 dash_search_string = self.dash.get_searchbar().search_string
24 self.deactivate_ibus()
25 self.dash.ensure_hidden()