ibus-table/fix-test.patch
Mike FABIAN b5ba310856 Update to 1.11.0
- Make key bindings configurable.
  Only via the command line for the moment, not yet easy to do
  for normal users. I have to rewrite the setup tool eventually
  to make that possible.
- Resolves: https://github.com/ibus/ibus/issues/2241
2020-08-18 19:36:41 +02:00

16 lines
860 B
Diff

diff -ru ibus-table-1.11.0.orig/tests/test_it.py ibus-table-1.11.0/tests/test_it.py
--- ibus-table-1.11.0.orig/tests/test_it.py 2020-08-16 03:01:17.000000000 +0200
+++ ibus-table-1.11.0/tests/test_it.py 2020-08-16 04:01:02.995248967 +0200
@@ -460,10 +460,10 @@
self.assertEqual(ENGINE.get_input_mode(), 1)
def test_switch_to_next_chinese_mode_with_keybinding(self):
- self.assertEqual(ENGINE.get_chinese_mode(), 2)
+ self.assertEqual(ENGINE.get_chinese_mode(), 4)
# Now change with the keybinding:
ENGINE.do_process_key_event(IBus.KEY_semicolon, 0, IBus.ModifierType.CONTROL_MASK)
- self.assertEqual(ENGINE.get_chinese_mode(), 3)
+ self.assertEqual(ENGINE.get_chinese_mode(), 0)
def test_toggle_onechar_mode_with_keybinding(self):
self.assertEqual(ENGINE.get_onechar_mode(), False)