tree: fc7ae3f7496b804d85ffc44dc16b235490941686 [path history] [tgz]
  1. meta/
  2. mocks/
  3. testdata/
  4. web_client/
  5. a11y_semantics_event_manager_test.cc
  6. BUILD.gn
  7. flutter_semantics_tests.cc
  8. README.md
  9. semantic_tree_parser.cc
  10. semantic_tree_parser.h
  11. semantic_tree_parser_test.cc
  12. semantic_tree_service_unittest.cc
  13. semantics_integration_test_fixture_v2.cc
  14. semantics_integration_test_fixture_v2.h
  15. tree_unittest.cc
  16. 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 workstation.<board> --with //src/ui/a11y/bundles:tests

And run the tests using

# Run the integration tests
ffx test run fuchsia-pkg://fuchsia.com/semantics-integration-tests#meta/flutter_semantics_tests.cm
ffx test run fuchsia-pkg://fuchsia.com/semantics-integration-tests#meta/web_semantics_tests.cm
# Run the unit tests
ffx test run fuchsia-pkg://fuchsia.com/a11y_lib_tests#meta/semantics_tests.cm

Integration test internals

The semantics integration tests launch private instances of scenic and web_runner or flutter_runner (depending on whether the web tests or the flutter tests are running). The tests provide a fuchsia.accessibility.semantics.SemanticsManager, which is used to inspect semantic data sent by the runner under test and to trigger semantic actions in runner.

Web semantic integration tests

These tests launch a web_runner and load html pages from the test package. These test pages are sourced from the testdata directory.

Flutter semantic integration tests

These tests launch a flutter_runner running the a11y-demo app.