~sil2100/unity/autopilot_ibus_improve

Viewing all changes in revision 3144.

  • Committer: Łukasz 'sil2100' Zemczak
  • Date: 2013-02-12 10:54:18 UTC
  • Revision ID: lukasz.zemczak@canonical.com-20130212105418-xcr5t2qsoj2uk956
Improve IBus autopilot tests.
With these improvements, asian characters do not need to be hardcoded in the tests anymore. Now, the 'expected' values are taken directly from IBus before each test. We're doing it by using a separate input context and storing it for comparison. Using the existing input context was buggy, so this seemed like the best way to go otherwise.
To do this, I had to work-around the new IBus bindings from GIR, since create_input_context() - which was needed, was not introspectable.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: