1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 function setCompositionTest() {
6 chrome
.input
.ime
.setComposition({
17 }, chrome
.test
.callbackPass());
21 function clearCompositionTest() {
22 chrome
.input
.ime
.clearComposition({
24 }, chrome
.test
.callbackPass());
28 function commitTextTest() {
29 chrome
.input
.ime
.commitText({
32 }, chrome
.test
.callbackPass());
36 function setCandidateWindowPropertiesTest() {
37 chrome
.input
.ime
.setCandidateWindowProperties({
41 "cursorVisible": false,
44 "auxiliaryText": "notes",
45 "auxiliaryTextVisible": true
47 }, chrome
.test
.callbackPass());
51 function setCandidatesTest() {
52 chrome
.input
.ime
.setCandidates({
58 "annotation": "The first one"
63 "annotation": "The second one"
68 "annotation": "The third one"
70 }, chrome
.test
.callbackPass());
74 function setCursorPositionTest() {
75 chrome
.input
.ime
.setCursorPosition({
78 }, chrome
.test
.callbackPass());
83 function setMenuItemsTest() {
84 chrome
.input
.ime
.setMenuItems({
99 }, chrome
.test
.callbackPass());
102 function updateMenuItemsTest() {
103 chrome
.input
.ime
.updateMenuItems({
112 }, chrome
.test
.callbackPass());
115 function deleteSurroundingText() {
116 chrome
.input
.ime
.deleteSurroundingText({
121 }, chrome
.test
.callbackPass());
124 chrome
.test
.runTests([setCompositionTest
, clearCompositionTest
,
125 commitTextTest
, setCandidateWindowPropertiesTest
,
126 setCandidatesTest
, setCursorPositionTest
,
127 setMenuItemsTest
, updateMenuItemsTest
,
128 deleteSurroundingText
]);