From 89cadf04a44fea0f526ad37e459377c351f7602b Mon Sep 17 00:00:00 2001 From: Valerie Young Date: Thu, 15 Aug 2024 16:38:20 -0700 Subject: [PATCH 1/5] First draft: tests using JSONs from manual test --- .../json-test-example/aria-autocomplete.html | 45 ++++ .../json-test-example/aria-braillelabel.html | 28 +++ .../json-test-example/aria-errormessage.html | 30 +++ core-aam/json-test-example/blockquote.html | 23 ++ ...es_for_aria-pressed_and_aria-haspopup.html | 55 +++++ ...n_with_defined_value_for_aria-pressed.html | 32 +++ ...ith_non_false_value_for_aria-haspopup.html | 62 ++++++ .../json-test-example/scripts/aam-utils.js | 107 +++++++++ .../json-test-example/scripts/attr-map.js | 114 ++++++++++ .../json-test-example/scripts/role-map.js | 186 ++++++++++++++++ resources/testdriver.js | 20 ++ .../wptrunner/wptrunner/executors/actions.py | 17 +- .../wptrunner/executors/executoratspi.py | 209 +++++++++++++++--- .../executorplatformaccessibility.py | 18 ++ tools/wptrunner/wptrunner/testdriver-extra.js | 5 + 15 files changed, 924 insertions(+), 27 deletions(-) create mode 100644 core-aam/json-test-example/aria-autocomplete.html create mode 100644 core-aam/json-test-example/aria-braillelabel.html create mode 100644 core-aam/json-test-example/aria-errormessage.html create mode 100644 core-aam/json-test-example/blockquote.html create mode 100644 core-aam/json-test-example/button_with_default_values_for_aria-pressed_and_aria-haspopup.html create mode 100644 core-aam/json-test-example/button_with_defined_value_for_aria-pressed.html create mode 100644 core-aam/json-test-example/button_with_non_false_value_for_aria-haspopup.html create mode 100644 core-aam/json-test-example/scripts/aam-utils.js create mode 100644 core-aam/json-test-example/scripts/attr-map.js create mode 100644 core-aam/json-test-example/scripts/role-map.js diff --git a/core-aam/json-test-example/aria-autocomplete.html b/core-aam/json-test-example/aria-autocomplete.html new file mode 100644 index 00000000000000..86ec0a8ff2e6b8 --- /dev/null +++ b/core-aam/json-test-example/aria-autocomplete.html @@ -0,0 +1,45 @@ + + + + + aria-braillelabel + + + + + + + + + + + + + + + + + + diff --git a/core-aam/json-test-example/aria-braillelabel.html b/core-aam/json-test-example/aria-braillelabel.html new file mode 100644 index 00000000000000..53621b04d1bb6d --- /dev/null +++ b/core-aam/json-test-example/aria-braillelabel.html @@ -0,0 +1,28 @@ + + + + + aria-braillelabel + + + + + + + + + + +