| 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 82ed14ec140feec0c0cc37f1b92f5f03e2a297f0..1797d56caaf1ab036adc9ae7faf331e7ae91f134 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
|
| @@ -935,3 +935,32 @@ TEST_F('BackgroundTest', 'SymetricComplexHeading', function() {
|
| .replay();
|
| });
|
| });
|
| +
|
| +TEST_F('BackgroundTest', 'ContentEditableJumpSyncsRange', function() {
|
| + var mockFeedback = this.createMockFeedback();
|
| + this.runWithLoadedTree(function(root) {/*!
|
| + <div contenteditable>
|
| + <h1>Top News</h1>
|
| + <h1>Most Popular</h1>
|
| + <h1>Sports</h1>
|
| + </div>
|
| + */}, function(root) {
|
| + var assertRangeHasText = function(text) {
|
| + return function() {
|
| + assertEquals(text,
|
| + ChromeVoxState.instance.getCurrentRange().start.node.name);
|
| + };
|
| + };
|
| +
|
| + mockFeedback.call(doCmd('nextHeading'))
|
| + .expectSpeech('Top News')
|
| + .call(assertRangeHasText('Top News'))
|
| + .call(doCmd('nextHeading'))
|
| + .expectSpeech('Most Popular')
|
| + .call(assertRangeHasText('Most Popular'))
|
| + .call(doCmd('nextLine'))
|
| + .expectSpeech('Sports')
|
| + .call(assertRangeHasText('Sports'))
|
| + .replay();
|
| + });
|
| +});
|
|
|