bug 833256 - role=note should use eFromSubTreeIfRec name rule not eFromSubTree r=tbsaunde f=surkov

This commit is contained in:
Joshua Yuan 2013-03-17 22:02:01 -04:00
parent 420faa34da
commit 351810f37d
2 changed files with 14 additions and 1 deletions

View File

@ -1006,7 +1006,7 @@ ROLE(NOTE,
NSAccessibilityGroupRole,
USE_ROLE_STRING,
IA2_ROLE_NOTE,
eNameFromSubtreeRule)
eNameFromSubtreeIfReqRule)
ROLE(FIGURE,
"figure",

View File

@ -210,6 +210,11 @@
testName("img_eq", "x^2 + y^2 + z^2")
testName("txt_eq", "x^2 + y^2 + z^2")
////////////////////////////////////////////////////////////////////////
// tests for duplicate announcement of content
testName("test_note", null);
SimpleTest.finish();
}
@ -276,6 +281,11 @@
title="ARIA combobox selected value is not a part of name computation">
Bug 835666
</a>
<a target="_blank"
href="https://bugzilla.mozilla.org/show_bug.cgi?id=833256"
title="role note shouldn't pick up the name from subtree">
Mozilla Bug 833256
</a>
<p id="display"></p>
<div id="content" style="display: none"></div>
<pre id="test">
@ -602,5 +612,8 @@
<span id="txt_eq" role="math" title="x^2 + y^2 + z^2">x<sup>2</sup> +
y<sup>2</sup> + z<sup>2</sup></span>
<!-- duplicate announcement -->
<div id="test_note" role="note">subtree</div>
</body>
</html>