Bug 1460378: Verify role, role description mapping for meter element on mac r=eeejay
authorMorgan Reschenberg <mreschenberg@mozilla.com>
Wed, 17 Feb 2021 15:58:31 +0000
changeset 567867 9c26b758220867b23202784a66a6573c865cd522
parent 567866 d03c36cdbc21708ae33dd89fc90c444386a47dac
child 567868 874f2abf1d4c62665fe26967bc81a542b9fb439c
push id136655
push usermreschenberg@mozilla.com
push dateWed, 17 Feb 2021 16:00:57 +0000
treeherderautoland@9c26b7582208 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerseeejay
bugs1460378
milestone87.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1460378: Verify role, role description mapping for meter element on mac r=eeejay Differential Revision: https://phabricator.services.mozilla.com/D104760
accessible/tests/browser/mac/browser_roles_elements.js
--- a/accessible/tests/browser/mac/browser_roles_elements.js
+++ b/accessible/tests/browser/mac/browser_roles_elements.js
@@ -88,16 +88,17 @@ addAccessibleTask(
   <!-- A button with a 'banana' role description -->
   <button id="banana" aria-roledescription="banana"></button>
 
   <!-- Other elements -->
   <del id="deletion">Deleted text</del>
   <dl id="dl"><dt id="dt">term</dt><dd id="dd">definition</dd></dl>
   <hr id="hr" />
   <ins id="insertion">Inserted text</ins>
+  <meter id="meter" min="0" max="100" value="24">meter text here</meter>
 
   <!-- Some SVG stuff -->
   <svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="svg"
        xmlns:xlink="http://www.w3.org/1999/xlink">
     <g id="g">
       <title>g</title>
     </g>
     <rect width="300" height="100" id="rect"
@@ -198,16 +199,23 @@ addAccessibleTask(
 
     // Other elements
     testRoleAndSubRole(accDoc, "deletion", "AXGroup", "AXDeleteStyleGroup");
     testRoleAndSubRole(accDoc, "dl", "AXList", "AXDescriptionList");
     testRoleAndSubRole(accDoc, "dt", "AXGroup", "AXTerm");
     testRoleAndSubRole(accDoc, "dd", "AXGroup", "AXDescription");
     testRoleAndSubRole(accDoc, "hr", "AXSplitter", "AXContentSeparator");
     testRoleAndSubRole(accDoc, "insertion", "AXGroup", "AXInsertStyleGroup");
+    testRoleAndSubRole(
+      accDoc,
+      "meter",
+      "AXLevelIndicator",
+      null,
+      "level indicator"
+    );
 
     // Some SVG stuff
     testRoleAndSubRole(accDoc, "svg", "AXImage");
     testRoleAndSubRole(accDoc, "g", "AXGroup");
     testRoleAndSubRole(accDoc, "rect", "AXImage");
     testRoleAndSubRole(accDoc, "circle", "AXImage");
     testRoleAndSubRole(accDoc, "ellipse", "AXImage");
     testRoleAndSubRole(accDoc, "line", "AXImage");