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

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

Issue 2795083003: Add support for in-page links in ChromeVox. (Closed)
Patch Set: Address nit. Created 3 years, 8 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
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 2845e037ac631f4a368dea6116add49708b0b865..03831e8dd5a56dd9c818d19589d3b9c0407bc677 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
@@ -1228,3 +1228,16 @@ TEST_F('BackgroundTest', 'BrailleCaretNavigation', function() {
.replay();
});
});
+
+TEST_F('BackgroundTest', 'InPageLinks', function() {
+ var mockFeedback = this.createMockFeedback();
+ this.runWithLoadedTree(function(root) {/*!
+ <a href="#there">hi</a>
+ <button id="there">there</button>
+ */}, function(root) {
+ mockFeedback.expectSpeech('hi', 'Internal link')
+ .call(doCmd('forceClickOnCurrentItem'))
+ .expectSpeech('there', 'Button')
+ .replay();
+ });
+});

Powered by Google App Engine
This is Rietveld 408576698