tree: 43200f8ddc78771cb56d11fb1bbf9e0b1d27617e [search]
  1. meta/
  2. mocks/
  3. testdata/
  4. a11y_semantics_event_manager_test.cc
  5. BUILD.gn
  6. README.md
  7. semantic_tree_parser.cc
  8. semantic_tree_parser.h
  9. semantic_tree_parser_test.cc
  10. semantic_tree_service_unittest.cc
  11. tree_unittest.cc
  12. web_semantics_tests.cc
src/ui/a11y/lib/semantics/tests/README.md

semantics manager tests

Running the tests

To run all of the semantics tests, build with a configuration such as

fx set minimal.<board> --with //src/ui/a11y/bundles:tests

And run the tests using

# Run the integration tests
fx test web-semantics-test
# Run the unit tests
fx test semantics-tests-component

Integration test internals

The web semantics integration tests launch an isolated UI test realm (UITestManager) and Chromium ContextProvider, and provide a fuchsia.accessibility.semantics.SemanticsManager implementation (a11y::ViewManager) used to inspect semantic trees and trigger semantic actions on HTML pages loaded into a fuchsia.web.Frame.