diff options
author | k.czech <k.czech@samsung.com> | 2014-12-06 00:40:15 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-06 08:40:29 +0000 |
commit | 0027a48cdffe4f37afe5d6097a0be0ffa68aab30 (patch) | |
tree | 0a9a3f37f73be259ca7e0fb88b41e9231b263840 | |
parent | daafc0935bd05c81a6fd7ae708e2adc9e36bb8c0 (diff) | |
download | chromium_src-0027a48cdffe4f37afe5d6097a0be0ffa68aab30.zip chromium_src-0027a48cdffe4f37afe5d6097a0be0ffa68aab30.tar.gz chromium_src-0027a48cdffe4f37afe5d6097a0be0ffa68aab30.tar.bz2 |
Introduce new API to test mixed state of ARIA checkboxes.
BUG=
Review URL: https://codereview.chromium.org/756003003
Cr-Commit-Position: refs/heads/master@{#307169}
-rw-r--r-- | content/shell/renderer/test_runner/web_ax_object_proxy.cc | 6 | ||||
-rw-r--r-- | content/shell/renderer/test_runner/web_ax_object_proxy.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/content/shell/renderer/test_runner/web_ax_object_proxy.cc b/content/shell/renderer/test_runner/web_ax_object_proxy.cc index 2ffc21f..6292cfc 100644 --- a/content/shell/renderer/test_runner/web_ax_object_proxy.cc +++ b/content/shell/renderer/test_runner/web_ax_object_proxy.cc @@ -503,6 +503,7 @@ WebAXObjectProxy::GetObjectTemplateBuilder(v8::Isolate* isolate) { .SetProperty("rowCount", &WebAXObjectProxy::RowCount) .SetProperty("columnCount", &WebAXObjectProxy::ColumnCount) .SetProperty("isClickable", &WebAXObjectProxy::IsClickable) + .SetProperty("isButtonStateMixed", &WebAXObjectProxy::IsButtonStateMixed) .SetMethod("allAttributes", &WebAXObjectProxy::AllAttributes) .SetMethod("attributesOfChildren", &WebAXObjectProxy::AttributesOfChildren) @@ -797,6 +798,11 @@ bool WebAXObjectProxy::IsClickable() { return accessibility_object_.isClickable(); } +bool WebAXObjectProxy::IsButtonStateMixed() { + accessibility_object_.updateLayoutAndCheckValidity(); + return accessibility_object_.isButtonStateMixed(); +} + std::string WebAXObjectProxy::AllAttributes() { accessibility_object_.updateLayoutAndCheckValidity(); return GetAttributes(accessibility_object_); diff --git a/content/shell/renderer/test_runner/web_ax_object_proxy.h b/content/shell/renderer/test_runner/web_ax_object_proxy.h index 783f238..18a7963 100644 --- a/content/shell/renderer/test_runner/web_ax_object_proxy.h +++ b/content/shell/renderer/test_runner/web_ax_object_proxy.h @@ -95,6 +95,7 @@ class WebAXObjectProxy : public gin::Wrappable<WebAXObjectProxy> { int32_t RowCount(); int32_t ColumnCount(); bool IsClickable(); + bool IsButtonStateMixed(); // Bound methods. std::string AllAttributes(); |