OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Include test fixture. | 5 // Include test fixture. |
6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js', | 6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js', |
7 '../../testing/assert_additions.js']); | 7 '../../testing/assert_additions.js']); |
8 | 8 |
9 GEN_INCLUDE(['../../testing/mock_feedback.js']); | 9 GEN_INCLUDE(['../../testing/mock_feedback.js']); |
10 | 10 |
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 .call(doCmd('nextObject')) | 850 .call(doCmd('nextObject')) |
851 .expectSpeech('After2') | 851 .expectSpeech('After2') |
852 .call(doCmd('previousObject')) | 852 .call(doCmd('previousObject')) |
853 .expectSpeech('After1') | 853 .expectSpeech('After1') |
854 .call(doCmd('previousObject')) | 854 .call(doCmd('previousObject')) |
855 .expectSpeech('Before3'); | 855 .expectSpeech('Before3'); |
856 | 856 |
857 mockFeedback.replay(); | 857 mockFeedback.replay(); |
858 }); | 858 }); |
859 }); | 859 }); |
| 860 |
| 861 TEST_F('BackgroundTest', 'ButtonNameValueDescription', function() { |
| 862 var mockFeedback = this.createMockFeedback(); |
| 863 this.runWithLoadedTree(function(root) {/*! |
| 864 <input type="submit" aria-label="foo" value="foo"></input> |
| 865 */}, function(root) { |
| 866 var btn = root.find({role: RoleType.button}); |
| 867 mockFeedback.call(btn.focus.bind(btn)) |
| 868 .expectSpeech('foo') |
| 869 .expectSpeech('Button') |
| 870 .replay(); |
| 871 }); |
| 872 }); |
OLD | NEW |