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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs

Issue 2072503002: Correctly fire active descendant changes for more roles Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: m Created 4 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
index e8f8475cbda6d72897e4793e480ee88d8862eab9..51d9da674c380b632905b37d77cb72b1d718262f 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
@@ -870,3 +870,29 @@ TEST_F('BackgroundTest', 'ButtonNameValueDescription', function() {
.replay();
});
});
+
+TEST_F('BackgroundTest', 'ActiveDescendantOnPopupButton', function() {
+ var mockFeedback = this.createMockFeedback();
+ this.runWithLoadedTree(function(root) {/*!
+ <button id="a" aria-activedescendant="b" aria-haspopup="true">a</button>
+ <p id="b">b</p>
+ <p id="c">c</p>
+ <script>
+ var alt = false;
+ setInterval(function() {
+ var id = alt ? 'b' : 'c';
+ document.getElementById('a').setAttribute('aria-activedescendant', id);
+ alt = !alt;
+ }, 500);
+ </script>
+ */}, function(root) {
+ root.find({role: RoleType.popUpButton}).focus();
+ mockFeedback.expectSpeech('a')
+ .expectSpeech('b')
+ .expectSpeech('Button')
+ .expectSpeech('b')
+ .expectSpeech('c')
+ .expectSpeech('b')
+ .replay();
+ });
+});
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698