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

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

Issue 1319093003: Use new earcons in ChromeVox Next. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@automation_node_id_fix_2
Patch Set: Rebase Created 5 years, 2 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 a795073b0144418aebd256383e3bf07899276ef8..80bb9bf633ff8fee1f8472188f8883a29e693efd 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
@@ -396,3 +396,49 @@ TEST_F('BackgroundTest', 'UseEditableState', function() {
nonEditable.focus();
}.bind(this));
});
+
+TEST_F('BackgroundTest', 'EarconsForControls', function() {
+ var mockFeedback = this.createMockFeedback();
+ this.runWithLoadedTree(
+ function() {/*!
+ <p>Initial focus will be on something that's not a control.</p>
+ <a href="#">MyLink</a>
+ <button>MyButton</button>
+ <input type=checkbox>
+ <input type=checkbox checked>
+ <input>
+ <select multiple><option>1</option></select>
+ <select><option>2</option></select>
+ <input type=range value=5>
+ */},
+ function(rootNode) {
+ var doCmd = this.doCmd.bind(this);
+
+ mockFeedback.call(doCmd('nextElement'))
+ .expectSpeech('MyLink')
+ .expectEarcon(cvox.Earcon.LINK)
+ .call(doCmd('nextElement'))
+ .expectSpeech('MyButton')
+ .expectEarcon(cvox.Earcon.BUTTON)
+ .call(doCmd('nextElement'))
+ .expectSpeech('Check box')
+ .expectEarcon(cvox.Earcon.CHECK_OFF)
+ .call(doCmd('nextElement'))
+ .expectSpeech('Check box')
+ .expectEarcon(cvox.Earcon.CHECK_ON)
+ .call(doCmd('nextElement'))
+ .expectSpeech('Edit text')
+ .expectEarcon(cvox.Earcon.EDITABLE_TEXT)
+ .call(doCmd('nextElement'))
+ .expectSpeech('List box')
+ .expectEarcon(cvox.Earcon.LISTBOX)
+ .call(doCmd('nextElement'))
+ .expectSpeech('Button', 'has pop up')
+ .expectEarcon(cvox.Earcon.POP_UP_BUTTON)
+ .call(doCmd('nextElement'))
+ .expectSpeech(/slider/)
+ .expectEarcon(cvox.Earcon.SLIDER);
+
+ mockFeedback.replay();
+ }.bind(this));
+});

Powered by Google App Engine
This is Rietveld 408576698