Title: [202610] trunk/LayoutTests
- Revision
- 202610
- Author
- [email protected]
- Date
- 2016-06-28 21:31:41 -0700 (Tue, 28 Jun 2016)
Log Message
AX: Add accessibility tests for MathML operators
https://bugs.webkit.org/show_bug.cgi?id=124836
Patch by Frederic Wang <[email protected]> on 2016-06-28
Reviewed by Joanmarie Diggs.
We add one test to verify the (sub)roles of MathML operators with various fence and separator
properties. These properties can be set via an explicit attribute or read from the operator
dictionary.
* accessibility/math-mo-fences-and-separators.html: Added.
* platform/gtk/accessibility/math-mo-fences-and-separators-expected.txt: Added.
* platform/mac/accessibility/math-mo-fences-and-separators-expected.txt: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (202609 => 202610)
--- trunk/LayoutTests/ChangeLog 2016-06-29 04:17:36 UTC (rev 202609)
+++ trunk/LayoutTests/ChangeLog 2016-06-29 04:31:41 UTC (rev 202610)
@@ -1,3 +1,18 @@
+2016-06-28 Frederic Wang <[email protected]>
+
+ AX: Add accessibility tests for MathML operators
+ https://bugs.webkit.org/show_bug.cgi?id=124836
+
+ Reviewed by Joanmarie Diggs.
+
+ We add one test to verify the (sub)roles of MathML operators with various fence and separator
+ properties. These properties can be set via an explicit attribute or read from the operator
+ dictionary.
+
+ * accessibility/math-mo-fences-and-separators.html: Added.
+ * platform/gtk/accessibility/math-mo-fences-and-separators-expected.txt: Added.
+ * platform/mac/accessibility/math-mo-fences-and-separators-expected.txt: Added.
+
2016-06-28 David Kilzer <[email protected]>
Enhance shouldNotThrow()/shouldThrow() to accept functions and a descriptive message
Added: trunk/LayoutTests/accessibility/math-mo-fences-and-separators.html (0 => 202610)
--- trunk/LayoutTests/accessibility/math-mo-fences-and-separators.html (rev 0)
+++ trunk/LayoutTests/accessibility/math-mo-fences-and-separators.html 2016-06-29 04:31:41 UTC (rev 202610)
@@ -0,0 +1,38 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<script src=""
+<script src=""
+</head>
+<body>
+<div id="content">
+ <math id="math">
+ <mo>*</mo>
+ <mo fence="true">*</mo>
+ <mo separator="true">*</mo>
+ <mo fence="true" separator="true">*</mo>
+ <mrow>
+ <mo>(</mo> <!-- fence per the operator dictionary -->
+ <mi>x</mi>
+ <mo>,</mo> <!-- separator per the operator dictionary -->
+ <mi>y</mi>
+ <mo>;</mo> <!-- separator per the operator dictionary -->
+ <mi>z</mi>
+ <mo>]</mo> <!-- fence per the operator dictionary -->
+ </mrow>
+ </math>
+</div>
+<p id="description"></p>
+<pre id="tree"></pre>
+<div id="console"></div>
+<script>
+ description("This verifies the expected roles and values are exposed for mo.");
+
+ if (window.accessibilityController) {
+ dumpAccessibilityTree(accessibilityController.accessibleElementById("math"), null, 0, false, false, true);
+ document.getElementById("content").style.visibility = "hidden";
+ }
+</script>
+<script src=""
+</body>
+</html>
Property changes on: trunk/LayoutTests/accessibility/math-mo-fences-and-separators.html
___________________________________________________________________
Added: svn:eol-style
+LF
\ No newline at end of property
Added: svn:mime-type
+text/html
\ No newline at end of property
Added: trunk/LayoutTests/platform/gtk/accessibility/math-mo-fences-and-separators-expected.txt (0 => 202610)
--- trunk/LayoutTests/platform/gtk/accessibility/math-mo-fences-and-separators-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/gtk/accessibility/math-mo-fences-and-separators-expected.txt 2016-06-29 04:31:41 UTC (rev 202610)
@@ -0,0 +1,22 @@
+This verifies the expected roles and values are exposed for mo.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+AXRole: AXMath
+ AXRole: AXStatic AXValue: *
+ AXRole: AXStatic AXValue: *
+ AXRole: AXStatic AXValue: *
+ AXRole: AXStatic AXValue: *
+ AXRole: AXGroup
+ AXRole: AXStatic AXValue: (
+ AXRole: AXStatic AXValue: x
+ AXRole: AXStatic AXValue: ,
+ AXRole: AXStatic AXValue: y
+ AXRole: AXStatic AXValue: ;
+ AXRole: AXStatic AXValue: z
+ AXRole: AXStatic AXValue: ]
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Property changes on: trunk/LayoutTests/platform/gtk/accessibility/math-mo-fences-and-separators-expected.txt
___________________________________________________________________
Added: svn:eol-style
+LF
\ No newline at end of property
Added: trunk/LayoutTests/platform/mac/accessibility/math-mo-fences-and-separators-expected.txt (0 => 202610)
--- trunk/LayoutTests/platform/mac/accessibility/math-mo-fences-and-separators-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac/accessibility/math-mo-fences-and-separators-expected.txt 2016-06-29 04:31:41 UTC (rev 202610)
@@ -0,0 +1,33 @@
+This verifies the expected roles and values are exposed for mo.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+AXRole: AXGroup AXSubrole: AXDocumentMath AXValue:
+ AXRole: AXGroup AXSubrole: AXMathOperator AXValue:
+ AXRole: AXStaticText AXSubrole: AXValue: *
+ AXRole: AXGroup AXSubrole: AXMathFenceOperator AXValue:
+ AXRole: AXStaticText AXSubrole: AXValue: *
+ AXRole: AXGroup AXSubrole: AXMathSeparatorOperator AXValue:
+ AXRole: AXStaticText AXSubrole: AXValue: *
+ AXRole: AXGroup AXSubrole: AXMathFenceOperator AXValue:
+ AXRole: AXStaticText AXSubrole: AXValue: *
+ AXRole: AXGroup AXSubrole: AXMathRow AXValue:
+ AXRole: AXGroup AXSubrole: AXMathFenceOperator AXValue:
+ AXRole: AXStaticText AXSubrole: AXValue: (
+ AXRole: AXGroup AXSubrole: AXMathIdentifier AXValue:
+ AXRole: AXStaticText AXSubrole: AXValue: x
+ AXRole: AXGroup AXSubrole: AXMathSeparatorOperator AXValue:
+ AXRole: AXStaticText AXSubrole: AXValue: ,
+ AXRole: AXGroup AXSubrole: AXMathIdentifier AXValue:
+ AXRole: AXStaticText AXSubrole: AXValue: y
+ AXRole: AXGroup AXSubrole: AXMathSeparatorOperator AXValue:
+ AXRole: AXStaticText AXSubrole: AXValue: ;
+ AXRole: AXGroup AXSubrole: AXMathIdentifier AXValue:
+ AXRole: AXStaticText AXSubrole: AXValue: z
+ AXRole: AXGroup AXSubrole: AXMathFenceOperator AXValue:
+ AXRole: AXStaticText AXSubrole: AXValue: ]
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Property changes on: trunk/LayoutTests/platform/mac/accessibility/math-mo-fences-and-separators-expected.txt
___________________________________________________________________
Added: svn:eol-style
+LF
\ No newline at end of property
Added: svn:executable
+*
\ No newline at end of property
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes