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 | 7 |
8 GEN_INCLUDE(['../../testing/mock_tts.js']); | 8 GEN_INCLUDE(['../../testing/mock_tts.js']); |
9 | 9 |
10 /** | 10 /** |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 return null; | 83 return null; |
84 } | 84 } |
85 | 85 |
86 chrome.automation.getDesktop(function(root) { | 86 chrome.automation.getDesktop(function(root) { |
87 var testButton = findStatusTray(root); | 87 var testButton = findStatusTray(root); |
88 cvox.ChromeVox.tts.expectSpeech('Status tray', testDone); | 88 cvox.ChromeVox.tts.expectSpeech('Status tray', testDone); |
89 testButton.focus(); | 89 testButton.focus(); |
90 }); | 90 }); |
91 }); | 91 }); |
92 | 92 |
| 93 // Flaky: http://crbug.com/451362 |
93 /** Tests feedback once a page loads. */ | 94 /** Tests feedback once a page loads. */ |
94 TEST_F('BackgroundTest', 'InitialFeedback', function() { | 95 TEST_F('BackgroundTest', 'DISABLED_InitialFeedback', function() { |
95 cvox.ChromeVox.tts.expectSpeech('start', function() { | 96 cvox.ChromeVox.tts.expectSpeech('start', function() { |
96 global.backgroundObj.onGotCommand('nextLine'); | 97 global.backgroundObj.onGotCommand('nextLine'); |
97 }, true); | 98 }, true); |
98 cvox.ChromeVox.tts.expectSpeech('end', testDone, true); | 99 cvox.ChromeVox.tts.expectSpeech('end', testDone, true); |
99 | 100 |
100 this.runWithDocument(function() {/*! | 101 this.runWithDocument(function() {/*! |
101 <p>start | 102 <p>start |
102 <p>end | 103 <p>end |
103 */}, | 104 */}, |
104 function() {}); | 105 function() {}); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 }.bind(this), 0); | 192 }.bind(this), 0); |
192 }.bind(cvox.ChromeVox.tts); | 193 }.bind(cvox.ChromeVox.tts); |
193 | 194 |
194 expect('start', doCmd('continuousRead')); | 195 expect('start', doCmd('continuousRead')); |
195 expect('alpha Link', sendEndEvent); | 196 expect('alpha Link', sendEndEvent); |
196 expect('beta Link', sendEndEvent); | 197 expect('beta Link', sendEndEvent); |
197 expect('Heading charlie', sendEndEvent); | 198 expect('Heading charlie', sendEndEvent); |
198 cvox.ChromeVox.tts.finishExpectations(); | 199 cvox.ChromeVox.tts.finishExpectations(); |
199 }.bind(this)); | 200 }.bind(this)); |
200 }); | 201 }); |
OLD | NEW |