| 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 5b1b4572056ebb66c4f0f587998c0742f0f54d19..4bac9dc6c2815debeec070ae676c6e2d73e8d76c 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
|
| @@ -630,3 +630,27 @@ TEST_F('BackgroundTest', 'DISABLED_ForwardNavigationThroughIframes', function()
|
| });
|
| });
|
| });
|
| +
|
| +TEST_F('BackgroundTest', 'SelectOptionSelected', function() {
|
| + var mockFeedback = this.createMockFeedback();
|
| + this.runWithLoadedTree(function() {/*!
|
| + <select>
|
| + <option>apple
|
| + <option>banana
|
| + <option>grapefruit
|
| + </select>
|
| + */}, function(root) {
|
| + var select = root.find({role: 'popUpButton'});
|
| + var clickSelect = select.doDefault.bind(select);
|
| + var lastOption = select.lastChild.lastChild;
|
| + var selectLastOption = lastOption.doDefault.bind(lastOption);
|
| +
|
| + mockFeedback.call(clickSelect)
|
| + .expectSpeech('apple')
|
| + .expectSpeech('Button')
|
| + .call(selectLastOption)
|
| + .expectNextSpeechUtteranceIsNot('apple')
|
| + .expectSpeech('grapefruit')
|
| + .replay();
|
| + });
|
| +});
|
|
|