| Index: content/test/data/accessibility/aria/aria-textbox-with-selection.html
|
| diff --git a/content/test/data/accessibility/aria/aria-textbox-with-selection.html b/content/test/data/accessibility/aria/aria-textbox-with-selection.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c8fccd4cac91c7f2b3c8e65c392fd9b245b9759d
|
| --- /dev/null
|
| +++ b/content/test/data/accessibility/aria/aria-textbox-with-selection.html
|
| @@ -0,0 +1,28 @@
|
| +<!--
|
| +@MAC-ALLOW:AXRole*
|
| +@WIN-ALLOW:IA2_STATE_SINGLE_LINE
|
| +@WIN-ALLOW:IA2_STATE_MULTI_LINE
|
| +@WIN-ALLOW:xml-roles*
|
| +@WIN-ALLOW:caret_offset*
|
| +@WIN-ALLOW:n_selections*
|
| +@WIN-ALLOW:selection_start*
|
| +@WIN-ALLOW:selection_end*
|
| +-->
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| + <div id="text1" role="textbox">Single line.</div>
|
| + <div id="text2" role="textbox" aria-multiline="true">Multiple<br>lines.</div>
|
| +
|
| + <script>
|
| + var selection = window.getSelection();
|
| + var selectionRange = document.createRange();
|
| + var text1 = document.getElementById("text1");
|
| + var text2 = document.getElementById("text2");
|
| + selectionRange.setStart(text1, 0);
|
| + selectionRange.setEnd(text2, 1);
|
| + selection.removeAllRanges();
|
| + selection.addRange(selectionRange);
|
| + </script>
|
| +</body>
|
| +</html>
|
|
|