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 [Layout Tests](/docs/testing/layout_tests.md) for general | 5 See [Layout Tests](/docs/testing/layout_tests.md) for general |
6 info on how to build and run layout tests. | 6 info on how to build and run layout tests. |
7 | 7 |
8 ## Old vs. New | 8 ## Old vs. New |
9 | 9 |
10 There are two styles of accessibility layout tests: | 10 There are two styles of accessibility layout tests: |
11 | 11 |
12 * Using a ```-expected.txt``` (now deprecated) | 12 * Using a ```-expected.txt``` (now deprecated) |
13 * Unit-style tests with assertions | 13 * Unit-style tests with assertions |
14 | 14 |
15 Use the unit-style tests. An example is aria-modal.html. | 15 Use the unit-style tests. An example is aria-modal.html. |
16 | 16 |
17 ## Methodology and Bindings | 17 ## Methodology and Bindings |
18 | 18 |
19 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. |
20 | 20 |
21 The code that implements the bindings is here: | 21 The code that implements the bindings is here: |
22 | 22 |
23 * ```components/test_runner/accessibility_controller.cc``` | 23 * ```content/shell/test_runner/accessibility_controller.cc``` |
24 * ```components/test_runner/web_ax_object_proxy.cc``` | 24 * ```content/shell/test_runner/web_ax_object_proxy.cc``` |
25 | 25 |
26 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. |
OLD | NEW |