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

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

Issue 2694903010: AX checked state changes (Closed)
Patch Set: Test checkbox attribute in automation API, fix whitespace, remove change to third party code Created 3 years, 9 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 55784e641edeffa9f9b4b16cce018cc9d4cae57b..8908d82c8734412b96fd28b241fe33c2c384003d 100644
--- a/content/shell/test_runner/web_ax_object_proxy.cc
+++ b/content/shell/test_runner/web_ax_object_proxy.cc
@@ -1001,7 +1001,7 @@ bool WebAXObjectProxy::IsExpanded() {
bool WebAXObjectProxy::IsChecked() {
accessibility_object_.updateLayoutAndCheckValidity();
- return accessibility_object_.isChecked();
+ return accessibility_object_.checkedState() != blink::WebAXCheckedFalse;
}
bool WebAXObjectProxy::IsCollapsed() {
@@ -1127,7 +1127,7 @@ bool WebAXObjectProxy::IsClickable() {
bool WebAXObjectProxy::IsButtonStateMixed() {
accessibility_object_.updateLayoutAndCheckValidity();
- return accessibility_object_.isButtonStateMixed();
+ return accessibility_object_.checkedState() == blink::WebAXCheckedMixed;
}
v8::Local<v8::Object> WebAXObjectProxy::AriaControlsElementAtIndex(

Powered by Google App Engine
This is Rietveld 408576698