blob: ce9e01790af2f2dfe0c38104ce68b26367affc8e [file] [log] [blame]
<p>This tests for a bug where deleting a character inserted with Kotoeri would remove the caret.</p>
<div id="div" contenteditable="true"></div>
<script>
document.getElementById("div").focus();
if (window.testRunner) {
window.testRunner.dumpEditingCallbacks();
var markedText = textInputController.makeAttributedString("a");
markedText.addAttribute("NSUnderline", 2);
textInputController.setMarkedText(markedText, 1, 0);
// Delete the marked text.
textInputController.setMarkedText("", 0, 0);
}
</script>