| Index: LayoutTests/accessibility/element-role-mapping-focusable.html
|
| diff --git a/LayoutTests/accessibility/element-role-mapping-focusable.html b/LayoutTests/accessibility/element-role-mapping-focusable.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e543ea41c424bfaed06ee6cfe0d85f178f441dea
|
| --- /dev/null
|
| +++ b/LayoutTests/accessibility/element-role-mapping-focusable.html
|
| @@ -0,0 +1,81 @@
|
| +<html>
|
| +<script src="../resources/js-test.js"></script>
|
| +<script src="../resources/accessibility-helper.js"></script>
|
| +<a href="http://www.chromium.org">Visit Chromium</a>
|
| +<a id="mousedown" onmousedown="mouseDown()">Click the text!</a>
|
| +<button type="button">Button</button>
|
| +<details>
|
| + <summary>Copyright 2015.</summary>
|
| + <p>The Chromium Authors. All rights reserved.</p>
|
| +</details>
|
| +<input list="fruits">
|
| +<datalist id="fruits">
|
| + <option value="Apple">
|
| + <option value="Banana">
|
| +</datalist>
|
| +<input type="button" value="Click input button">
|
| +<input type="checkbox" value="CheckBox"> I have a checkbox
|
| +<input type="radio" value="Radio"> Radio
|
| +<input type="radio" value="Button"> Button
|
| +<menu>
|
| + <input type="button" role="button" value="Click menuitem">
|
| + <input type="checkbox" name="vehicle" value="menuItemCheckbox"> I have a menuItem
|
| + <input type="radio" name="gender" value="Menu"> Menu
|
| + <input type="radio" name="gender" value="ItemRadio"> ItemRadio
|
| +</menu>
|
| +Birthday: <input type="date" name="bday">
|
| +Birthday (date and time): <input type="datetime" name="bdaytime">
|
| +Birthday (date and time): <input type="datetime-local" name="bdaytime">
|
| +Birthday (month and year): <input type="month" name="bdaymonth">
|
| +Select a week: <input type="week" name="week_year">
|
| +Select a file: <input type="file" name="img">
|
| +Min-Max: <input type="number" min="1" max="5">
|
| +<input type="range" name="points" min="0" max="10">
|
| +Select your favorite color: <input type="color" name="color">
|
| +Select a time: <input type="time" name="time">
|
| +<input type="reset">
|
| +<select>
|
| + <option value="Pacific">Pacific</option>
|
| + <option value="Atlantic">Atlantic</option>
|
| + <option value="Indian">Indian</option>
|
| + <option value="Southern">Southern</option>
|
| + <option value="Arctic">Arctic</option>
|
| +</select>
|
| +<select multiple>
|
| + <option value="Milk">Milk</option>
|
| + <option value="Soda">Soda</option>
|
| + <option value="Coffee">Coffee</option>
|
| + <option value="Water">Water</option>
|
| +</select>
|
| +<textarea rows="2" cols="5">
|
| +TextArea
|
| +</textarea>
|
| +<meter value="0.6">60%</meter>
|
| +<form oninput="x.value=parseInt(a.value)+parseInt(b.value)">0
|
| + <input type="range" id="a" value="50">100
|
| + +<input type="number" id="b" value="50">
|
| + =<output name="x" for="a b"></output>
|
| +</form>
|
| +<form>
|
| + <label for="blue">Blue</label>
|
| + <input type="radio" name="color" id="blue" value="blue">
|
| + <label for="red">Red</label>
|
| + <input type="radio" name="color" id="red" value="red">
|
| +</form>
|
| +<fieldset>
|
| + <legend>Text Input Controls</legend>
|
| + Text: <input type="text" name="texttest"><br>
|
| + Password: <input type="password" name="passtest"><br>
|
| +</fieldset>
|
| +<p>End of test</p>
|
| +<p id="description"></p>
|
| +<div id="console"></div>
|
| +<script>
|
| +description("This test make sure that focusable elements are mapped implicitly to AX roles.");
|
| +
|
| +if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +if (window.accessibilityController)
|
| + buildAccessibilityTree(accessibilityController.focusedElement, 0, 1);
|
| +</script>
|
| +</html>
|
|
|