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

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

Issue 2085433003: Ignore listMarker nodes and sync from left to right after a jump command. (Closed) 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 | « chrome/browser/resources/chromeos/chromevox/cvox2/background/background.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/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 ed0cea7683f5067e7aa7fbf8ffeec6ce5d3ae6fe..b721d3de71d5a2976318e25f7eba4ff33c0d940e 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
@@ -811,11 +811,7 @@ TEST_F('BackgroundTest', 'BackwardForwardSync', function() {
mockFeedback.call(listItem.focus.bind(listItem))
.expectSpeech('List item')
.call(this.doCmd('nextObject'))
- .expectSpeech('•')
- .call(this.doCmd('previousObject'))
- .expectSpeech('List item')
- .call(this.doCmd('nextObject'))
- .expectSpeech('•')
+ .expectSpeech('Button')
.call(this.doCmd('previousObject'))
.expectSpeech('List item')
.call(this.doCmd('previousObject'))
@@ -906,3 +902,31 @@ TEST_F('BackgroundTest', 'OptionChildIndexCount', function() {
.replay();
});
});
+
+TEST_F('BackgroundTest', 'ListMarkerIsIgnored', function() {
+ var mockFeedback = this.createMockFeedback();
+ this.runWithLoadedTree(function(root) {/*!
+ <ul><li>apple</ul>
+ */}, function(root) {
+ mockFeedback.call(doCmd('nextObject'))
+ .expectNextSpeechUtteranceIsNot('listMarker')
+ .expectSpeech('apple')
+ .replay();
+ });
+});
+
+TEST_F('BackgroundTest', 'SymetricComplexHeading', function() {
+ var mockFeedback = this.createMockFeedback();
+ this.runWithLoadedTree(function(root) {/*!
+ <h4><p>NW</p><p>NE</p></h4>
+ <h4><p>SW</p><p>SE</p></h4>
+ */}, function(root) {
+ mockFeedback.call(doCmd('nextHeading'))
+ .expectNextSpeechUtteranceIsNot('NE')
+ .expectSpeech('NW')
+ .call(doCmd('previousHeading'))
+ .expectNextSpeechUtteranceIsNot('NE')
+ .expectSpeech('NW')
+ .replay();
+ });
+});
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698