blob: c6c81fd739360d7cbecdf63ec0b16577963da466 [file] [log] [blame]
<html>
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=32905">bug 32905</a>:
With Pinyin Simplified IM, a wrong character is deleted from google.com suggestion.</p>
<p>Should say PASS: </p>
<input id="test">
<script type="text/javascript">
if (window.testRunner)
testRunner.dumpAsText();
var testInput = document.getElementById("test");
testInput.focus();
if (window.testRunner) {
try {
textInputController.setMarkedText("P", 1, 0);
testInput.value="PAS";
eventSender.keyDown("S");
document.getElementsByTagName("p")[1].innerHTML += testInput.value;
} catch (ex) {
document.write("Exception: " + ex.description);
}
} else
document.write("This test only runs in automated mode<br>");
</script>
</body>
</html>