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

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

Issue 2331163002: Refine output of containers when focused (Closed)
Patch Set: Fix code to match test expectations; remove most descendant output. Created 4 years, 3 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 | « chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
index 98e7f23a2bd68bb5893f7b434647b404a764c05c..5a328d070a5d2ee5d733ef4dbd6a769d134bc627 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
@@ -650,3 +650,16 @@ TEST_F('OutputE2ETest', 'ComplexDiv', function() {
, o.speechOutputForTest.string_);
});
});
+
+TEST_F('OutputE2ETest', 'ContainerFocus', function() {
+ this.runWithLoadedTree(function() {/*!
+ <div role="row" tabindex=0 aria-label="start"></div>
+ <div role="row" tabindex=0 aria-label="end"></div>
+ */},
+ function(root) {
+ var r1 = cursors.Range.fromNode(root.firstChild);
+ var r2 = cursors.Range.fromNode(root.lastChild);
+ assertEquals('start|Row',
+ new Output().withSpeech(r1, r2).speechOutputForTest.string_);
+ });
+});
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698