diff options
author | nona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-01 09:38:26 +0000 |
---|---|---|
committer | nona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-01 09:38:26 +0000 |
commit | 8478e078169a397f36cac63c675a0b009c6338bb (patch) | |
tree | 8cf414e2e4630f99648d3b58a32184596f40e335 /chrome/test | |
parent | a2540e99f5d80f42fd7b0742c71cc77980019a56 (diff) | |
download | chromium_src-8478e078169a397f36cac63c675a0b009c6338bb.zip chromium_src-8478e078169a397f36cac63c675a0b009c6338bb.tar.gz chromium_src-8478e078169a397f36cac63c675a0b009c6338bb.tar.bz2 |
This is 2nd try of https://codereview.chromium.org/12316154
I checked it pass linux_chromeos try bots.
--- original commit message ---
Introduce deleteSurroundingText api for Extension IME.
Some IME requires deleting surrounding text to correct or update already
committed text.
This api is same spec of ibus which is input method framework commonly used in
Linux desktop.
BUG=177622
TEST=Manually done on lumpy.
TBR=zork,mpcomplete
Review URL: https://chromiumcodereview.appspot.com/12385038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185506 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/data/extensions/api_test/input_ime/background.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/chrome/test/data/extensions/api_test/input_ime/background.js b/chrome/test/data/extensions/api_test/input_ime/background.js index 826d290..973c4532 100644 --- a/chrome/test/data/extensions/api_test/input_ime/background.js +++ b/chrome/test/data/extensions/api_test/input_ime/background.js @@ -112,7 +112,17 @@ function updateMenuItemsTest() { }, chrome.test.callbackPass()); } +function deleteSurroundingText() { + chrome.input.ime.deleteSurroundingText({ + "engineID": "test", + "contextID": 1, + "offset": -1, + "length": 1 + }, chrome.test.callbackPass()); +} + chrome.test.runTests([setCompositionTest, clearCompositionTest, commitTextTest, setCandidateWindowPropertiesTest, setCandidatesTest, setCursorPositionTest, - setMenuItemsTest, updateMenuItemsTest]); + setMenuItemsTest, updateMenuItemsTest, + deleteSurroundingText]); |