Commit 09fa2c34 authored by Akihiro Ota's avatar Akihiro Ota Committed by Commit Bot

Add new DumpAccessibilityTreeTest for aria-articles.

This test asserts that articles within feeds report non-zero
PosInSet and SetSize, while those not contained within
a feed report PosInSet and SetSize of 0.

Change-Id: I52a2c480b08e5e3ac8434f4cb02e64bb44466cad
Reviewed-on: https://chromium-review.googlesource.com/c/1385022
Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#622986}
parent db990bb8
...@@ -793,6 +793,11 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaPosinset) { ...@@ -793,6 +793,11 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaPosinset) {
RunAriaTest(FILE_PATH_LITERAL("aria-posinset.html")); RunAriaTest(FILE_PATH_LITERAL("aria-posinset.html"));
} }
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaArticlePosInSetSetSize) {
RunAriaTest(FILE_PATH_LITERAL("aria-article-posinset-setsize.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaPresentation) { AccessibilityAriaPresentation) {
RunAriaTest(FILE_PATH_LITERAL("aria-presentation.html")); RunAriaTest(FILE_PATH_LITERAL("aria-presentation.html"));
......
rootWebArea
++article setSize=0 posInSet=0
++++staticText name='ARIA Articles outside of feeds should have PosInSet and SetSize of 0.'
++++++inlineTextBox name='ARIA Articles outside of feeds should have PosInSet and SetSize of 0.'
++feed setSize=5
++++article setSize=5 posInSet=4
++++article setSize=5 posInSet=5
<!--
@BLINK-ALLOW:setSize*
@BLINK-ALLOW:posInSet*
-->
<html>
<body>
<!-- This article should have posinset and setsize of 0, since it is -->
<!-- not contained within a feed. -->
<div role="article"> ARIA Articles outside of feeds should have PosInSet and
SetSize of 0.
</div>
<!-- These articles should have posinset and setsize. The feed should also
report as setsize of 5. -->
<div role="feed">
<div role="article" aria-posinset="4" aria-setsize="5"></div>
<div role="article" aria-posinset="5" aria-setsize="5"></div>
</div>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment