OLD | NEW |
1 # LayoutTests for Accessibility | 1 # LayoutTests for Accessibility |
2 | 2 |
3 ## General Info on LayoutTests: Building and Running the Tests | 3 ## General Info on LayoutTests: Building and Running the Tests |
4 | 4 |
5 See https://chromium.googlesource.com/chromium/src/+/master/docs/testing/layout_
tests.md for general info on how to build and run LayoutTests. | 5 See [Layout Tests](/docs/testing/layout_tests.md) for general |
| 6 info on how to build and run layout tests. |
6 | 7 |
7 ## Old vs. New | 8 ## Old vs. New |
8 | 9 |
9 There are two styles of accessibility layout tests: | 10 There are two styles of accessibility layout tests: |
| 11 |
10 * Using a ```-expected.txt``` (now deprecated) | 12 * Using a ```-expected.txt``` (now deprecated) |
11 * Unit-style tests with assertions | 13 * Unit-style tests with assertions |
12 | 14 |
13 Use the unit-style tests. An example is aria-modal.html. | 15 Use the unit-style tests. An example is aria-modal.html. |
14 | 16 |
15 ## Methodology and Bindings | 17 ## Methodology and Bindings |
16 | 18 |
17 These tests check the accessibility tree directly in Blink using ```Accessibilit
yController```, which is just a test helper. | 19 These tests check the accessibility tree directly in Blink using ```Accessibilit
yController```, which is just a test helper. |
18 | 20 |
19 The code that implements the bindings is here: | 21 The code that implements the bindings is here: |
20 | 22 |
21 * ```components/test_runner/accessibility_controller.cc``` | 23 * ```components/test_runner/accessibility_controller.cc``` |
22 * ```components/test_runner/web_ax_object_proxy.cc``` | 24 * ```components/test_runner/web_ax_object_proxy.cc``` |
23 | 25 |
24 You'll probably find bindings for the features you want to test already. If not,
it's not hard to add new ones. | 26 You'll probably find bindings for the features you want to test already. If not,
it's not hard to add new ones. |
25 | |
OLD | NEW |