AX: <svg> elements with labels and no accessible contents are exposed as empty AXGroups
[WebKit-https.git] / LayoutTests / editing / input / focus-change-with-marked-text.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4     <input id="input" contenteditable></input>
5     <select id="select"><option></option></select>
6     <div id="output"></div>
7     <script type="text/javascript">
8         let write = s => output.innerHTML += `${s}<br>`;
9         input.focus();
10
11         if (window.testRunner) {
12             testRunner.dumpAsText();
13             textInputController.setMarkedText("a", 1, 0);
14             textInputController.setMarkedText("ab", 2, 0);
15             textInputController.setMarkedText("abc", 3, 0);
16             select.focus();
17             textInputController.insertText(null);
18             write(`The text field's value is: "${input.value}"`);
19             write(`Is there marked text? ${!!textInputController.markedRange()}`);
20         } else {
21             write(`To manually test, insert some marked text in the left text field without committing it, then focus
22                 the right select menu. The composition text should be committed, and the composition should no longer
23                 be highlighted.`);
24         }
25     </script>
26 </body>
27 </html>