| 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 | |
| 94 /** Tests feedback once a page loads. */ | 93 /** Tests feedback once a page loads. */ |
| 95 TEST_F('BackgroundTest', 'DISABLED_InitialFeedback', function() { | 94 TEST_F('BackgroundTest', 'InitialFeedback', function() { |
| 96 cvox.ChromeVox.tts.expectSpeech('start', function() { | 95 cvox.ChromeVox.tts.expectSpeech('start', function() { |
| 97 global.backgroundObj.onGotCommand('nextLine'); | 96 global.backgroundObj.onGotCommand('nextLine'); |
| 98 }, true); | 97 }, true); |
| 99 cvox.ChromeVox.tts.expectSpeech('end', testDone, true); | 98 cvox.ChromeVox.tts.expectSpeech('end', testDone, true); |
| 100 | 99 |
| 101 this.runWithDocument(function() {/*! | 100 this.runWithDocument(function() {/*! |
| 102 <p>start | 101 <p>start |
| 103 <p>end | 102 <p>end |
| 104 */}, | 103 */}, |
| 105 function() {}); | 104 function() {}); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 }.bind(this), 0); | 191 }.bind(this), 0); |
| 193 }.bind(cvox.ChromeVox.tts); | 192 }.bind(cvox.ChromeVox.tts); |
| 194 | 193 |
| 195 expect('start', doCmd('continuousRead')); | 194 expect('start', doCmd('continuousRead')); |
| 196 expect('alpha Link', sendEndEvent); | 195 expect('alpha Link', sendEndEvent); |
| 197 expect('beta Link', sendEndEvent); | 196 expect('beta Link', sendEndEvent); |
| 198 expect('Heading charlie', sendEndEvent); | 197 expect('Heading charlie', sendEndEvent); |
| 199 cvox.ChromeVox.tts.finishExpectations(); | 198 cvox.ChromeVox.tts.finishExpectations(); |
| 200 }.bind(this)); | 199 }.bind(this)); |
| 201 }); | 200 }); |
| OLD | NEW |