blob: 2d779c4471246ea9d16454a8e4711517ee37c756 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>This tests selecting all with an open input method composition.
To manually test, type some letter in the editable region below and then select all.
WebKit should not delete contents.</p>
<div id="container"><div contenteditable>PAS</div></div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
if (window.testRunner) {
var container = document.getElementById('container');
container.firstChild.focus();
getSelection().collapse(container.firstChild.firstChild, 3);
if (window.textInputController) {
Markup.description(document.getElementsByTagName('p')[0].textContent);
textInputController.setMarkedText("S", 0, 1);
document.execCommand('selectAll', false, null);
Markup.dump(container);
} else
Markup.description('FAIL - This test requires textInputController');
}
</script>
</body>
</html>