Chromium Code Reviews| Index: content/test/data/accessibility/aria/aria-searchbox-with-selection.html |
| diff --git a/content/test/data/accessibility/aria/aria-searchbox-with-selection.html b/content/test/data/accessibility/aria/aria-searchbox-with-selection.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..34a7204d18a239860503a1e3b548737573745202 |
| --- /dev/null |
| +++ b/content/test/data/accessibility/aria/aria-searchbox-with-selection.html |
| @@ -0,0 +1,24 @@ |
| +<!-- |
| +@MAC-ALLOW:AXRole* |
| +@MAC-ALLOW:AXSubrole* |
| +@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="searchbox" role="searchbox">ARIA role searchbox.</div> |
| + <script> |
| + var selection = window.getSelection(); |
| + var selectionRange = document.createRange(); |
| + var searchbox = document.getElementById("searchbox"); |
| + searchbox.focus(); |
| + selectionRange.selectNodeContents(searchbox); |
| + selection.removeAllRanges(); |
| + selection.addRange(selectionRange); |
|
David Tseng
2015/08/28 16:08:46
It would be great to do this natively (using acces
dmazzoni
2015/08/28 21:48:53
Maybe in a different test? That couldn't be done f
|
| + </script> |
| +</body> |
| +</html> |