Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1590)

Unified Diff: content/shell/test_runner/web_ax_object_proxy.cc

Issue 2886963004: Fixes for tree item level, setsize and posinset (Closed)
Patch Set: Fix tests Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/test_runner/web_ax_object_proxy.cc
diff --git a/content/shell/test_runner/web_ax_object_proxy.cc b/content/shell/test_runner/web_ax_object_proxy.cc
index 150f59e6b1b930a45b38f391272112a5dfd7369f..79e403c17241ab7053d892d2a2f24b09e275ffe8 100644
--- a/content/shell/test_runner/web_ax_object_proxy.cc
+++ b/content/shell/test_runner/web_ax_object_proxy.cc
@@ -626,6 +626,7 @@ gin::ObjectTemplateBuilder WebAXObjectProxy::GetObjectTemplateBuilder(
.SetProperty("relevant", &WebAXObjectProxy::Relevant)
.SetProperty("roleDescription", &WebAXObjectProxy::RoleDescription)
.SetProperty("sort", &WebAXObjectProxy::Sort)
+ .SetProperty("hierarchicalLevel", &WebAXObjectProxy::HierarchicalLevel)
.SetProperty("posInSet", &WebAXObjectProxy::PosInSet)
.SetProperty("setSize", &WebAXObjectProxy::SetSize)
.SetProperty("clickPointX", &WebAXObjectProxy::ClickPointX)
@@ -1198,6 +1199,11 @@ std::string WebAXObjectProxy::Sort() {
}
}
+int WebAXObjectProxy::HierarchicalLevel() {
+ accessibility_object_.UpdateLayoutAndCheckValidity();
+ return accessibility_object_.HierarchicalLevel();
+}
+
int WebAXObjectProxy::PosInSet() {
accessibility_object_.UpdateLayoutAndCheckValidity();
return accessibility_object_.PosInSet();
« no previous file with comments | « content/shell/test_runner/web_ax_object_proxy.h ('k') | content/test/data/accessibility/aria/aria-tree.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698