4 <p>This tests selecting all with an open input method composition.
5 To manually test, type some letter in the editable region below and then select all.
6 WebKit should not delete contents.</p>
7 <div id="container"><div contenteditable>PAS</div></div>
8 <script src="../../resources/dump-as-markup.js"></script>
11 if (window.testRunner) {
12 var container = document.getElementById('container');
13 container.firstChild.focus();
14 getSelection().collapse(container.firstChild.firstChild, 3);
15 if (window.textInputController) {
16 Markup.description(document.getElementsByTagName('p')[0].textContent);
18 textInputController.setMarkedText("S", 0, 1);
19 document.execCommand('selectAll', false, null);
21 Markup.dump(container);
23 Markup.description('FAIL - This test requires textInputController');