6 <p>This tests that clearing a text compose doesn't leave the composed text behild in the text field
</p>
7 <p>To test manually, enable an IME, input characters, clear the compose and see if the input field only contains the initial value
</p>
8 <input id=
"test" type=
"text" value=
""/>
10 <script language=
"javascript" type=
"text/javascript">
12 var li
= document
.createElement('li');
13 li
.appendChild(document
.createTextNode(str
));
14 var console
= document
.getElementById('console');
15 console
.appendChild(li
);
18 var test
= document
.getElementById('test');
21 if (window
.testRunner
) {
22 testRunner
.dumpAsText();
25 textInputController
.setMarkedText('5', 5, 1);
26 textInputController
.setMarkedText('6', 5, 1);
27 textInputController
.setMarkedText('7', 5, 1);
29 // Verify that the input field contains the composed value
30 log(test
.value
== "7" ? "SUCCESS COMPOSE" : "FAILED COMPOSE");
32 textInputController
.setMarkedText('', 0, 1);
34 // Verify that the input field only contains its initial value
35 log(test
.value
== "" ? "SUCCESS CLEAR" : "FAILED CLEAR");