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
=== modified file 'tests/autopilot/autopilot/tests/test_ibus.py'
--- tests/autopilot/autopilot/tests/test_ibus.py 2012-02-26 20:40:15 +0000
+++ tests/autopilot/autopilot/tests/test_ibus.py 2012-03-22 21:52:25 +0000
@@ -100,9 +100,9 @@
100 """Tests for the Anthy(Japanese) input engine."""100 """Tests for the Anthy(Japanese) input engine."""
101101
102 scenarios = [102 scenarios = [
103 ('system', {'input': 'shisutemu ', 'result': u'\u30b7\u30b9\u30c6\u30e0'}),103 ('system', {'commit_key': 'Ctrl+j', 'input': 'shisutemu ', 'result': u'\u30b7\u30b9\u30c6\u30e0'}),
104 ('game', {'input': 'ge-mu ', 'result': u'\u30b2\u30fc\u30e0'}),104 ('game', {'commit_key': 'Enter' ,'input': 'ge-mu ', 'result': u'\u30b2\u30fc\u30e0'}),
105 ('user', {'input': 'yu-za- ', 'result': u'\u30e6\u30fc\u30b6\u30fc'}),105 ('user', {'commit_key': 'Enter','input': 'yu-za- ', 'result': u'\u30e6\u30fc\u30b6\u30fc'}),
106 ]106 ]
107107
108 def test_simple_input(self):108 def test_simple_input(self):
@@ -112,7 +112,7 @@
112 self.activate_ibus()112 self.activate_ibus()
113 sleep(0.5)113 sleep(0.5)
114 self.kb.type(self.input)114 self.kb.type(self.input)
115 self.kb.press_and_release("Ctrl+j")115 self.kb.press_and_release(self.commit_key)
116 dash_search_string = self.dash.get_searchbar().search_string116 dash_search_string = self.dash.get_searchbar().search_string
117 self.deactivate_ibus()117 self.deactivate_ibus()
118 self.dash.ensure_hidden()118 self.dash.ensure_hidden()