| 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 .expectSpeech('Grail', 'Edit text') | 347 .expectSpeech('Grail', 'Edit text') |
| 348 .call(color.focus.bind(color)) | 348 .call(color.focus.bind(color)) |
| 349 .expectSpeech('Blue', 'Edit text') | 349 .expectSpeech('Blue', 'Edit text') |
| 350 .call(name.focus.bind(name)) | 350 .call(name.focus.bind(name)) |
| 351 .expectNextSpeechUtteranceIsNot('Blue') | 351 .expectNextSpeechUtteranceIsNot('Blue') |
| 352 .expectSpeech('Lancelot', 'Edit text'); | 352 .expectSpeech('Lancelot', 'Edit text'); |
| 353 mockFeedback.replay(); | 353 mockFeedback.replay(); |
| 354 }.bind(this)); | 354 }.bind(this)); |
| 355 }); | 355 }); |
| 356 | 356 |
| 357 TEST_F('BackgroundTest', 'UseEditableState', function() { | 357 // Flaky, see http://crbug.com/643902. |
| 358 TEST_F('BackgroundTest', 'DISABLED_UseEditableState', function() { |
| 358 this.runWithLoadedTree( | 359 this.runWithLoadedTree( |
| 359 function() {/*! | 360 function() {/*! |
| 360 <input type="text"></input> | 361 <input type="text"></input> |
| 361 <p tabindex=0>hi</p> | 362 <p tabindex=0>hi</p> |
| 362 */}, | 363 */}, |
| 363 function(rootNode) { | 364 function(rootNode) { |
| 364 var assertExists = this.newCallback(function (evt) { | 365 var assertExists = this.newCallback(function (evt) { |
| 365 assertNotNullNorUndefined( | 366 assertNotNullNorUndefined( |
| 366 ChromeVoxState.desktopAutomationHandler.textEditHandler_); | 367 ChromeVoxState.desktopAutomationHandler.textEditHandler_); |
| 367 evt.stopPropagation(); | 368 evt.stopPropagation(); |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1158 <input type="text"></input> | 1159 <input type="text"></input> |
| 1159 */}, function(root) { | 1160 */}, function(root) { |
| 1160 this.listenOnce(root, 'focus', function(e) { | 1161 this.listenOnce(root, 'focus', function(e) { |
| 1161 var focus = ChromeVoxState.instance.currentRange.start.node; | 1162 var focus = ChromeVoxState.instance.currentRange.start.node; |
| 1162 assertEquals(RoleType.textField, focus.role); | 1163 assertEquals(RoleType.textField, focus.role); |
| 1163 assertTrue(focus.state.focused); | 1164 assertTrue(focus.state.focused); |
| 1164 }); | 1165 }); |
| 1165 doCmd('nextEditText')(); | 1166 doCmd('nextEditText')(); |
| 1166 }); | 1167 }); |
| 1167 }); | 1168 }); |
| OLD | NEW |