Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/editing_test.extjs |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing_test.extjs b/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing_test.extjs |
index 23bc7d1481088aa130ea00785c0f7820b7f04334..056a13f52439850d4ff941dc3f6d09de8d9d6aa3 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing_test.extjs |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing_test.extjs |
@@ -32,6 +32,7 @@ EditingTest.prototype = { |
}, |
assertLineData: function(doc, data) { |
+ editing.useRichText = false; |
this.runWithLoadedTree(doc, function(root) { |
var input = root.find({role: RoleType.TEXT_FIELD}); |
input.addEventListener('focus', this.newCallback(function() { |
@@ -213,7 +214,6 @@ TEST_F('EditingTest', 'SingleCharacterLine', function() { |
}); |
TEST_F('EditingTest', 'RichTextMoveByLine', function() { |
- editing.useRichText = true; |
var mockFeedback = this.createMockFeedback(); |
this.runWithLoadedTree(function() {/*! |
<div id="go" role="textbox" contenteditable> |
@@ -253,7 +253,7 @@ TEST_F('EditingTest', 'RichTextMoveByLine', function() { |
.expectBraille('\n') |
.call(moveByLine) |
.expectSpeech('hello') |
- .expectBraille('hello') |
+ .expectBraille('hello mled') |
.replay(); |
}); |
input.focus(); |
@@ -261,7 +261,6 @@ TEST_F('EditingTest', 'RichTextMoveByLine', function() { |
}); |
TEST_F('EditingTest', 'RichTextMoveByCharacter', function() { |
- editing.useRichText = true; |
var mockFeedback = this.createMockFeedback(); |
this.runWithLoadedTree(function() {/*! |
<div id="go" role="textbox" contenteditable>This <b>is</b> a test.</div> |
@@ -286,7 +285,7 @@ TEST_F('EditingTest', 'RichTextMoveByCharacter', function() { |
*/}, function(root) { |
var input = root.find({role: RoleType.TEXT_FIELD}); |
var moveByChar = input.doDefault.bind(input); |
- var lineText = 'This is a test.'; |
+ var lineText = 'This is a test. mled'; |
this.listenOnce(input, 'focus', function() { |
mockFeedback.call(moveByChar) |
@@ -332,7 +331,6 @@ TEST_F('EditingTest', 'RichTextMoveByCharacter', function() { |
// Tests specifically for cursor workarounds. |
TEST_F('EditingTest', 'RichTextMoveByCharacterNodeWorkaround', function() { |
- editing.useRichText = true; |
var mockFeedback = this.createMockFeedback(); |
this.runWithLoadedTree(function() {/*! |
<div id="go" role="textbox" contenteditable>hello <b>world</b></div> |
@@ -346,7 +344,7 @@ TEST_F('EditingTest', 'RichTextMoveByCharacterNodeWorkaround', function() { |
*/}, function(root) { |
var input = root.find({role: RoleType.TEXT_FIELD}); |
var moveByChar = input.doDefault.bind(input) |
- var lineText = 'hello world'; |
+ var lineText = 'hello world mled'; |
this.listenOnce(input, 'focus', function() { |
mockFeedback.call(moveByChar) |
@@ -374,7 +372,6 @@ TEST_F('EditingTest', 'RichTextMoveByCharacterNodeWorkaround', function() { |
}); |
TEST_F('EditingTest', 'RichTextMoveByCharacterEndOfLine', function() { |
- editing.useRichText = true; |
var mockFeedback = this.createMockFeedback(); |
this.runWithLoadedTree(function() {/*! |
<div id="go" role="textbox" contenteditable>Test</div> |
@@ -388,7 +385,7 @@ TEST_F('EditingTest', 'RichTextMoveByCharacterEndOfLine', function() { |
*/}, function(root) { |
var input = root.find({role: RoleType.TEXT_FIELD}); |
var moveByChar = input.doDefault.bind(input); |
- var lineText = 'Test'; |
+ var lineText = 'Test mled'; |
this.listenOnce(input, 'focus', function() { |
mockFeedback.call(moveByChar) |