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_); |
+ }); |
+}); |