summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/graphics-aam
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/graphics-aam')
-rw-r--r--testing/web-platform/tests/graphics-aam/META.yml3
-rw-r--r--testing/web-platform/tests/graphics-aam/graphics-document_on_html_element-manual.html102
-rw-r--r--testing/web-platform/tests/graphics-aam/graphics-document_on_svg_element-manual.html105
-rw-r--r--testing/web-platform/tests/graphics-aam/graphics-object_on_html_element-manual.html96
-rw-r--r--testing/web-platform/tests/graphics-aam/graphics-object_on_svg_element-manual.html99
-rw-r--r--testing/web-platform/tests/graphics-aam/graphics-symbol_on_html_element-manual.html97
-rw-r--r--testing/web-platform/tests/graphics-aam/graphics-symbol_on_svg_element-manual.html98
7 files changed, 600 insertions, 0 deletions
diff --git a/testing/web-platform/tests/graphics-aam/META.yml b/testing/web-platform/tests/graphics-aam/META.yml
new file mode 100644
index 0000000000..197263836e
--- /dev/null
+++ b/testing/web-platform/tests/graphics-aam/META.yml
@@ -0,0 +1,3 @@
+spec: https://w3c.github.io/graphics-aam/
+suggested_reviewers:
+ - spectranaut
diff --git a/testing/web-platform/tests/graphics-aam/graphics-document_on_html_element-manual.html b/testing/web-platform/tests/graphics-aam/graphics-document_on_html_element-manual.html
new file mode 100644
index 0000000000..cc9b4077d1
--- /dev/null
+++ b/testing/web-platform/tests/graphics-aam/graphics-document_on_html_element-manual.html
@@ -0,0 +1,102 @@
+<!doctype html>
+<html>
+ <head>
+ <title>graphics-document on HTML element</title>
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
+ <link rel="stylesheet" href="/wai-aria/scripts/manual.css">
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script src="/wai-aria/scripts/ATTAcomm.js"></script>
+ <script>
+ setup({explicit_timeout: true, explicit_done: true });
+
+ var theTest = new ATTAcomm(
+ {
+ "steps" : [
+ {
+ "element" : "test",
+ "test" : {
+ "ATK" : [
+ [
+ "property",
+ "role",
+ "is",
+ "ROLE_DOCUMENT_FRAME"
+ ],
+ [
+ "property",
+ "objectAttributes",
+ "contains",
+ "xml-roles:graphics-document"
+ ]
+ ],
+ "AXAPI" : [
+ [
+ "property",
+ "AXRole",
+ "is",
+ "AXGroup"
+ ],
+ [
+ "property",
+ "AXSubrole",
+ "is",
+ "AXDocument"
+ ],
+ [
+ "property",
+ "AXRoleDescription",
+ "is",
+ "document"
+ ]
+ ],
+ "IAccessible2" : [
+ [
+ "property",
+ "role",
+ "is",
+ "ROLE_SYSTEM_DOCUMENT"
+ ],
+ [
+ "property",
+ "objectAttributes",
+ "contains",
+ "xml-roles:graphics-document"
+ ],
+ [
+ "property",
+ "states",
+ "contains",
+ "STATE_SYSTEM_READONLY"
+ ]
+ ],
+ "UIA" : [
+ [
+ "property",
+ "ControlType",
+ "is",
+ "Document"
+ ]
+ ]
+ },
+ "title" : "step 1",
+ "type" : "test"
+ }
+ ],
+ "title" : "graphics-document on HTML element"
+}
+
+ ) ;
+ </script>
+ </head>
+ <body>
+ <p>This test examines the ARIA properties for graphics-document on HTML element.</p>
+ <div id="test" role="graphics-document" aria-label="house">
+ <div role="graphics-object" aria-label="door"></div>
+ </div>
+
+ <div id="manualMode"></div>
+ <div id="log"></div>
+ <div id="ATTAmessages"></div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/graphics-aam/graphics-document_on_svg_element-manual.html b/testing/web-platform/tests/graphics-aam/graphics-document_on_svg_element-manual.html
new file mode 100644
index 0000000000..1b6144674a
--- /dev/null
+++ b/testing/web-platform/tests/graphics-aam/graphics-document_on_svg_element-manual.html
@@ -0,0 +1,105 @@
+<!doctype html>
+<html>
+ <head>
+ <title>graphics-document on SVG element</title>
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
+ <link rel="stylesheet" href="/wai-aria/scripts/manual.css">
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script src="/wai-aria/scripts/ATTAcomm.js"></script>
+ <script>
+ setup({explicit_timeout: true, explicit_done: true });
+
+ var theTest = new ATTAcomm(
+ {
+ "steps" : [
+ {
+ "element" : "test",
+ "test" : {
+ "ATK" : [
+ [
+ "property",
+ "role",
+ "is",
+ "ROLE_DOCUMENT_FRAME"
+ ],
+ [
+ "property",
+ "objectAttributes",
+ "contains",
+ "xml-roles:graphics-document"
+ ]
+ ],
+ "AXAPI" : [
+ [
+ "property",
+ "AXRole",
+ "is",
+ "AXGroup"
+ ],
+ [
+ "property",
+ "AXSubrole",
+ "is",
+ "AXDocument"
+ ],
+ [
+ "property",
+ "AXRoleDescription",
+ "is",
+ "document"
+ ]
+ ],
+ "IAccessible2" : [
+ [
+ "property",
+ "role",
+ "is",
+ "ROLE_SYSTEM_DOCUMENT"
+ ],
+ [
+ "property",
+ "objectAttributes",
+ "contains",
+ "xml-roles:graphics-document"
+ ],
+ [
+ "property",
+ "states",
+ "contains",
+ "STATE_SYSTEM_READONLY"
+ ]
+ ],
+ "UIA" : [
+ [
+ "property",
+ "ControlType",
+ "is",
+ "Document"
+ ]
+ ]
+ },
+ "title" : "step 1",
+ "type" : "test"
+ }
+ ],
+ "title" : "graphics-document on SVG element"
+}
+
+ ) ;
+ </script>
+ </head>
+ <body>
+ <p>This test examines the ARIA properties for graphics-document on SVG element.</p>
+ <svg xmlns="http://www.w3.org/2000/svg" id="test" role="graphics-document">
+ <g role="graphics-object" aria-label="door">
+ <rect fill="darkKhaki" stroke="#632" width="50" height="90" />
+ <circle fill="gray" stroke="#444" stroke-width="0.7" cx="10" cy="50" r="4" />
+ </g>
+ </svg>
+
+ <div id="manualMode"></div>
+ <div id="log"></div>
+ <div id="ATTAmessages"></div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/graphics-aam/graphics-object_on_html_element-manual.html b/testing/web-platform/tests/graphics-aam/graphics-object_on_html_element-manual.html
new file mode 100644
index 0000000000..074fe51939
--- /dev/null
+++ b/testing/web-platform/tests/graphics-aam/graphics-object_on_html_element-manual.html
@@ -0,0 +1,96 @@
+<!doctype html>
+<html>
+ <head>
+ <title>graphics-object on HTML element</title>
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
+ <link rel="stylesheet" href="/wai-aria/scripts/manual.css">
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script src="/wai-aria/scripts/ATTAcomm.js"></script>
+ <script>
+ setup({explicit_timeout: true, explicit_done: true });
+
+ var theTest = new ATTAcomm(
+ {
+ "steps" : [
+ {
+ "element" : "test",
+ "test" : {
+ "ATK" : [
+ [
+ "property",
+ "role",
+ "is",
+ "ROLE_PANEL"
+ ],
+ [
+ "property",
+ "objectAttributes",
+ "contains",
+ "xml-roles:graphics-object"
+ ]
+ ],
+ "AXAPI" : [
+ [
+ "property",
+ "AXRole",
+ "is",
+ "AXGroup"
+ ],
+ [
+ "property",
+ "AXSubrole",
+ "is",
+ "<nil>"
+ ],
+ [
+ "property",
+ "AXRoleDescription",
+ "is",
+ "group"
+ ]
+ ],
+ "IAccessible2" : [
+ [
+ "property",
+ "role",
+ "is",
+ "ROLE_SYSTEM_GROUPING"
+ ],
+ [
+ "property",
+ "objectAttributes",
+ "contains",
+ "xml-roles:graphics-object"
+ ]
+ ],
+ "UIA" : [
+ [
+ "property",
+ "ControlType",
+ "is",
+ "Group"
+ ]
+ ]
+ },
+ "title" : "step 1",
+ "type" : "test"
+ }
+ ],
+ "title" : "graphics-object on HTML element"
+}
+
+ ) ;
+ </script>
+ </head>
+ <body>
+ <p>This test examines the ARIA properties for graphics-object on HTML element.</p>
+ <div role="graphics-document" aria-label="house">
+ <div id="test" role="graphics-object" aria-label="door"></div>
+ </div>
+
+ <div id="manualMode"></div>
+ <div id="log"></div>
+ <div id="ATTAmessages"></div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/graphics-aam/graphics-object_on_svg_element-manual.html b/testing/web-platform/tests/graphics-aam/graphics-object_on_svg_element-manual.html
new file mode 100644
index 0000000000..d326ec5b64
--- /dev/null
+++ b/testing/web-platform/tests/graphics-aam/graphics-object_on_svg_element-manual.html
@@ -0,0 +1,99 @@
+<!doctype html>
+<html>
+ <head>
+ <title>graphics-object on SVG element</title>
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
+ <link rel="stylesheet" href="/wai-aria/scripts/manual.css">
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script src="/wai-aria/scripts/ATTAcomm.js"></script>
+ <script>
+ setup({explicit_timeout: true, explicit_done: true });
+
+ var theTest = new ATTAcomm(
+ {
+ "steps" : [
+ {
+ "element" : "test",
+ "test" : {
+ "ATK" : [
+ [
+ "property",
+ "role",
+ "is",
+ "ROLE_PANEL"
+ ],
+ [
+ "property",
+ "objectAttributes",
+ "contains",
+ "xml-roles:graphics-object"
+ ]
+ ],
+ "AXAPI" : [
+ [
+ "property",
+ "AXRole",
+ "is",
+ "AXGroup"
+ ],
+ [
+ "property",
+ "AXSubrole",
+ "is",
+ "<nil>"
+ ],
+ [
+ "property",
+ "AXRoleDescription",
+ "is",
+ "group"
+ ]
+ ],
+ "IAccessible2" : [
+ [
+ "property",
+ "role",
+ "is",
+ "ROLE_SYSTEM_GROUPING"
+ ],
+ [
+ "property",
+ "objectAttributes",
+ "contains",
+ "xml-roles:graphics-object"
+ ]
+ ],
+ "UIA" : [
+ [
+ "property",
+ "ControlType",
+ "is",
+ "Group"
+ ]
+ ]
+ },
+ "title" : "step 1",
+ "type" : "test"
+ }
+ ],
+ "title" : "graphics-object on SVG element"
+}
+
+ ) ;
+ </script>
+ </head>
+ <body>
+ <p>This test examines the ARIA properties for graphics-object on SVG element.</p>
+ <svg xmlns="http://www.w3.org/2000/svg" role="graphics-document">
+ <g id="test" role="graphics-object" aria-label="door">
+ <rect fill="darkKhaki" stroke="#632" width="50" height="90" />
+ <circle fill="gray" stroke="#444" stroke-width="0.7" cx="10" cy="50" r="4" />
+ </g>
+ </svg>
+
+ <div id="manualMode"></div>
+ <div id="log"></div>
+ <div id="ATTAmessages"></div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/graphics-aam/graphics-symbol_on_html_element-manual.html b/testing/web-platform/tests/graphics-aam/graphics-symbol_on_html_element-manual.html
new file mode 100644
index 0000000000..913a7d130d
--- /dev/null
+++ b/testing/web-platform/tests/graphics-aam/graphics-symbol_on_html_element-manual.html
@@ -0,0 +1,97 @@
+<!doctype html>
+<html>
+ <head>
+ <title>graphics-symbol on HTML element</title>
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
+ <link rel="stylesheet" href="/wai-aria/scripts/manual.css">
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script src="/wai-aria/scripts/ATTAcomm.js"></script>
+ <script>
+ setup({explicit_timeout: true, explicit_done: true });
+
+ var theTest = new ATTAcomm(
+ {
+ "steps" : [
+ {
+ "element" : "test",
+ "test" : {
+ "ATK" : [
+ [
+ "property",
+ "role",
+ "is",
+ "ROLE_IMAGE"
+ ],
+ [
+ "property",
+ "objectAttributes",
+ "contains",
+ "xml-roles:graphics-symbol"
+ ]
+ ],
+ "AXAPI" : [
+ [
+ "property",
+ "AXRole",
+ "is",
+ "AXImage"
+ ],
+ [
+ "property",
+ "AXSubrole",
+ "is",
+ "<nil>"
+ ],
+ [
+ "property",
+ "AXRoleDescription",
+ "is",
+ "image"
+ ]
+ ],
+ "IAccessible2" : [
+ [
+ "property",
+ "role",
+ "is",
+ "ROLE_SYSTEM_GRAPHIC"
+ ],
+ [
+ "property",
+ "objectAttributes",
+ "contains",
+ "xml-roles:graphics-symbol"
+ ]
+ ],
+ "UIA" : [
+ [
+ "property",
+ "ControlType",
+ "is",
+ "Image"
+ ]
+ ]
+ },
+ "title" : "step 1",
+ "type" : "test"
+ }
+ ],
+ "title" : "graphics-symbol on HTML element"
+}
+
+ ) ;
+ </script>
+ </head>
+ <body>
+ <p>This test examines the ARIA properties for graphics-symbol on HTML element.</p>
+ <div>Spinach Salad with Strawberry &amp; Almonds
+ <span id="test" aria-label="vegetarian" role="graphics-symbol">🌿</span>
+ <span aria-label="contains nuts" role="graphics-symbol">🌰</span>
+ </div>
+
+ <div id="manualMode"></div>
+ <div id="log"></div>
+ <div id="ATTAmessages"></div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/graphics-aam/graphics-symbol_on_svg_element-manual.html b/testing/web-platform/tests/graphics-aam/graphics-symbol_on_svg_element-manual.html
new file mode 100644
index 0000000000..78848269d2
--- /dev/null
+++ b/testing/web-platform/tests/graphics-aam/graphics-symbol_on_svg_element-manual.html
@@ -0,0 +1,98 @@
+<!doctype html>
+<html>
+ <head>
+ <title>graphics-symbol on SVG element</title>
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
+ <link rel="stylesheet" href="/wai-aria/scripts/manual.css">
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script src="/wai-aria/scripts/ATTAcomm.js"></script>
+ <script>
+ setup({explicit_timeout: true, explicit_done: true });
+
+ var theTest = new ATTAcomm(
+ {
+ "steps" : [
+ {
+ "element" : "test",
+ "test" : {
+ "ATK" : [
+ [
+ "property",
+ "role",
+ "is",
+ "ROLE_IMAGE"
+ ],
+ [
+ "property",
+ "objectAttributes",
+ "contains",
+ "xml-roles:graphics-symbol"
+ ]
+ ],
+ "AXAPI" : [
+ [
+ "property",
+ "AXRole",
+ "is",
+ "AXImage"
+ ],
+ [
+ "property",
+ "AXSubrole",
+ "is",
+ "<nil>"
+ ],
+ [
+ "property",
+ "AXRoleDescription",
+ "is",
+ "image"
+ ]
+ ],
+ "IAccessible2" : [
+ [
+ "property",
+ "role",
+ "is",
+ "ROLE_SYSTEM_GRAPHIC"
+ ],
+ [
+ "property",
+ "objectAttributes",
+ "contains",
+ "xml-roles:graphics-symbol"
+ ]
+ ],
+ "UIA" : [
+ [
+ "property",
+ "ControlType",
+ "is",
+ "Image"
+ ]
+ ]
+ },
+ "title" : "step 1",
+ "type" : "test"
+ }
+ ],
+ "title" : "graphics-symbol on SVG element"
+}
+
+ ) ;
+ </script>
+ </head>
+ <body>
+ <p>This test examines the ARIA properties for graphics-symbol on SVG element.</p>
+ <svg xmlns="http://www.w3.org/2000/svg">
+ <g id="test" role="graphics-symbol" aria-label="lightbulb">
+ <circle r="10" />
+ </g>
+ </svg>
+
+ <div id="manualMode"></div>
+ <div id="log"></div>
+ <div id="ATTAmessages"></div>
+ </body>
+</html>