blob: 498c9aa346413c19e7b9fa444cfd5d4878a8d54b [file] [log] [blame]
# This file contains a scenario for testing preedit text when a user switches
# the keyboard and moves the carret.
# Enable IME
SEND_KEY ON
# Following scenario is emulation of http://b/issue?id=5844621.
RESET_CONTEXT
# Switch to 12keys-hiragana keyboard layout.
UPDATE_MOBILE_KEYBOARD TOGGLE_FLICK_TO_HIRAGANA SPACE_OR_CONVERT_KEEPING_COMPOSITION
SWITCH_INPUT_MODE HIRAGANA
# The flick SA-key to the left to input "SHI", which is translated to 'd' key
# in the Java client.
SEND_KEYS d
EXPECT_PREEDIT
# Another scenario.
RESET_CONTEXT
# Set to number keyboard layout.
UPDATE_MOBILE_KEYBOARD TOGGLE_FLICK_TO_HALFWIDTHASCII COMMIT
SWITCH_INPUT_MODE HALF_ASCII
# Type "abc"
SEND_KEYS abc
EXPECT_PREEDIT abc
# Switch to 12keys-hiragana keyboard layout.
UPDATE_MOBILE_KEYBOARD TOGGLE_FLICK_TO_HIRAGANA SPACE_OR_CONVERT_KEEPING_COMPOSITION
SWITCH_INPUT_MODE HIRAGANA
# Move the carret between "b" and "c".
SEND_KEY LEFT
# Then send "い" by toggling
SEND_KEYS 11
EXPECT_PREEDIT abc