diff --git a/base/test/fontconfig_util_linux.cc b/base/test/fontconfig_util_linux.cc index 6848893f2f194f..9ed03c4e6401d9 100644 --- a/base/test/fontconfig_util_linux.cc +++ b/base/test/fontconfig_util_linux.cc @@ -36,19 +36,6 @@ const char kFontsConfTemplate[] = R"( - - - - Tinos - - - chromevox_tests - - - hintslight - - - Times diff --git a/chrome/browser/resources/chromeos/chromevox/BUILD.gn b/chrome/browser/resources/chromeos/chromevox/BUILD.gn index 9bc9585f6b11d8..9e91ae9babac22 100644 --- a/chrome/browser/resources/chromeos/chromevox/BUILD.gn +++ b/chrome/browser/resources/chromeos/chromevox/BUILD.gn @@ -485,46 +485,16 @@ if (chromevox_compress_js) { } } -test("chromevox_tests") { - sources = [ - "//chrome/browser/extensions/browsertest_util.cc", - "//chrome/browser/extensions/browsertest_util.h", - "//chrome/browser/ui/webui/web_ui_test_handler.cc", - "//chrome/browser/ui/webui/web_ui_test_handler.h", - "//chrome/test/base/extension_js_browser_test.cc", - "//chrome/test/base/extension_js_browser_test.h", - "//chrome/test/base/extension_load_waiter_one_shot.cc", - "//chrome/test/base/extension_load_waiter_one_shot.h", - "//chrome/test/base/javascript_browser_test.cc", - "//chrome/test/base/javascript_browser_test.h", - "//chrome/test/base/test_chrome_web_ui_controller_factory.cc", - "//chrome/test/base/test_chrome_web_ui_controller_factory.h", - "//chrome/test/base/web_ui_browser_test.cc", - "//chrome/test/base/web_ui_browser_test.h", - ] +source_set("browser_tests") { + testonly = true + assert(enable_extensions) deps = [ ":chromevox_extjs_tests", ":chromevox_unitjs_tests", - "//base", - "//base:i18n", - "//base/test:test_support", - "//chrome:browser_tests_pak", - "//chrome:packed_resources", - "//chrome:resources", - "//chrome:strings", - "//chrome/browser", - "//chrome/renderer", - "//chrome/test:browser_tests_runner", - "//chrome/test:test_support", - "//chrome/test:test_support_ui", - "//content/test:test_support", - "//services/service_manager/background:lib", - "//testing/gmock", - "//testing/gtest", - "//ui/keyboard:resources", ] + # TODO(jamescook): Figure out which of these are really necessary. data = [ "$root_out_dir/chrome_100_percent.pak", "$root_out_dir/chrome_200_percent.pak", @@ -661,6 +631,14 @@ js2gtest("chromevox_extjs_tests") { "testing/chromevox_next_e2e_test_base.js", "testing/mock_feedback.js", ] + + # The test base classes generate C++ code with these deps. + deps = [ + "//ash", + "//base", + "//chrome/browser/chromeos", + "//chrome/common", + ] defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] } diff --git a/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager_test.unitjs b/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager_test.unitjs index b13608c1873ac2..de1a2d003c92b1 100644 --- a/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager_test.unitjs +++ b/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager_test.unitjs @@ -11,9 +11,9 @@ GEN_INCLUDE(['../testing/chromevox_unittest_base.js', * @constructor * @extends {ChromeVoxUnitTestBase} */ -function CvoxBrailleDisplayManagerUnitTest() {} +function ChromeVoxBrailleDisplayManagerUnitTest() {} -CvoxBrailleDisplayManagerUnitTest.prototype = { +ChromeVoxBrailleDisplayManagerUnitTest.prototype = { __proto__: ChromeVoxUnitTestBase.prototype, /** @override */ @@ -179,7 +179,7 @@ chrome.storage = { }; -TEST_F('CvoxBrailleDisplayManagerUnitTest', 'NoApi', function() { +TEST_F('ChromeVoxBrailleDisplayManagerUnitTest', 'NoApi', function() { var manager = new cvox.BrailleDisplayManager(this.translatorManager); manager.setContent(this.NAV_BRAILLE); this.translatorManager.setTranslator(this.translator); @@ -190,7 +190,7 @@ TEST_F('CvoxBrailleDisplayManagerUnitTest', 'NoApi', function() { * Test that we don't write to the display when the API is available, but * the display is not. */ -TEST_F('CvoxBrailleDisplayManagerUnitTest', 'NoDisplay', function() { +TEST_F('ChromeVoxBrailleDisplayManagerUnitTest', 'NoDisplay', function() { this.addFakeApi(); this.displayState = {available: false}; @@ -204,7 +204,8 @@ TEST_F('CvoxBrailleDisplayManagerUnitTest', 'NoDisplay', function() { /** * Tests the typical sequence: setContent, setTranslator, setContent. */ -TEST_F('CvoxBrailleDisplayManagerUnitTest', 'BasicSetContent', function() { +TEST_F('ChromeVoxBrailleDisplayManagerUnitTest', 'BasicSetContent', + function() { this.addFakeApi(); this.displayAvailable(); var manager = new cvox.BrailleDisplayManager(this.translatorManager); @@ -220,8 +221,8 @@ TEST_F('CvoxBrailleDisplayManagerUnitTest', 'BasicSetContent', function() { /** * Tests that setting empty content clears the display. */ -TEST_F('CvoxBrailleDisplayManagerUnitTest', 'SetEmptyContentWithTranslator', - function() { +TEST_F('ChromeVoxBrailleDisplayManagerUnitTest', + 'SetEmptyContentWithTranslator', function() { this.addFakeApi(); this.displayAvailable(); @@ -236,7 +237,8 @@ TEST_F('CvoxBrailleDisplayManagerUnitTest', 'SetEmptyContentWithTranslator', }); -TEST_F('CvoxBrailleDisplayManagerUnitTest', 'CursorAndPanning', function() { +TEST_F('ChromeVoxBrailleDisplayManagerUnitTest', 'CursorAndPanning', + function() { var text = 'This is a test string'; function createNavBrailleWithCursor(start, end) { return new cvox.NavBraille({ text: text, startIndex: start, @@ -276,7 +278,7 @@ TEST_F('CvoxBrailleDisplayManagerUnitTest', 'CursorAndPanning', function() { * Tests that the grouping algorithm works with one text character that maps * to one braille cell. */ -TEST_F('CvoxBrailleDisplayManagerUnitTest', 'BasicGroup', function() { +TEST_F('ChromeVoxBrailleDisplayManagerUnitTest', 'BasicGroup', function() { var text = 'a'; var translated = '1'; var mapping = [0]; @@ -292,7 +294,7 @@ TEST_F('CvoxBrailleDisplayManagerUnitTest', 'BasicGroup', function() { * Tests that the grouping algorithm works with one text character that maps * to multiple braille cells. */ -TEST_F('CvoxBrailleDisplayManagerUnitTest', 'OneRtoManyB', function() { +TEST_F('ChromeVoxBrailleDisplayManagerUnitTest', 'OneRtoManyB', function() { var text = 'A'; var translated = '11'; var mapping = [0,0]; @@ -308,7 +310,7 @@ TEST_F('CvoxBrailleDisplayManagerUnitTest', 'OneRtoManyB', function() { * Tests that the grouping algorithm works with one braille cell that maps * to multiple text characters. */ -TEST_F('CvoxBrailleDisplayManagerUnitTest', 'OneBtoManyR', function() { +TEST_F('ChromeVoxBrailleDisplayManagerUnitTest', 'OneBtoManyR', function() { var text = 'knowledge'; var translated = '1'; var mapping = [0]; @@ -324,7 +326,8 @@ TEST_F('CvoxBrailleDisplayManagerUnitTest', 'OneBtoManyR', function() { * Tests that the grouping algorithm works with one string that on both ends, * have text characters that map to multiple braille cells. */ -TEST_F('CvoxBrailleDisplayManagerUnitTest', 'OneRtoManyB_BothEnds', function() { +TEST_F('ChromeVoxBrailleDisplayManagerUnitTest', 'OneRtoManyB_BothEnds', + function() { var text = 'AbbC'; var translated = 'X122X3'; var mapping = [0,0,1,2,3,3]; @@ -340,7 +343,8 @@ TEST_F('CvoxBrailleDisplayManagerUnitTest', 'OneRtoManyB_BothEnds', function() { * Tests that the grouping algorithm works with one string that on both ends, * have braille cells that map to multiple text characters. */ -TEST_F('CvoxBrailleDisplayManagerUnitTest', 'OneBtoManyR_BothEnds', function() { +TEST_F('ChromeVoxBrailleDisplayManagerUnitTest', 'OneBtoManyR_BothEnds', + function() { var text = 'knowledgehappych'; var translated = '1234456'; var mapping = [0, 9, 10, 11, 12, 13, 14]; @@ -357,7 +361,7 @@ TEST_F('CvoxBrailleDisplayManagerUnitTest', 'OneBtoManyR_BothEnds', function() { * Tests that the grouping algorithm works with one string that has both types * of mapping. */ -TEST_F('CvoxBrailleDisplayManagerUnitTest', 'RandB_Random', function() { +TEST_F('ChromeVoxBrailleDisplayManagerUnitTest', 'RandB_Random', function() { var text = 'knowledgeIsPower'; var translated = '1X23X45678'; var mapping = [0, 9, 9, 10, 11, 11, 12, 13, 14, 15]; diff --git a/chrome/browser/resources/chromeos/chromevox/braille/braille_input_handler_test.unitjs b/chrome/browser/resources/chromeos/chromevox/braille/braille_input_handler_test.unitjs index 5e3375c7411c69..789fd66d392a13 100644 --- a/chrome/browser/resources/chromeos/chromevox/braille/braille_input_handler_test.unitjs +++ b/chrome/browser/resources/chromeos/chromevox/braille/braille_input_handler_test.unitjs @@ -430,9 +430,9 @@ function cellsToArray(cells) { * @constructor * @extends {ChromeVoxUnitTestBase} */ -function CvoxBrailleInputHandlerUnitTest() {} +function ChromeVoxBrailleInputHandlerUnitTest() {} -CvoxBrailleInputHandlerUnitTest.prototype = { +ChromeVoxBrailleInputHandlerUnitTest.prototype = { __proto__: ChromeVoxUnitTestBase.prototype, /** @override */ @@ -534,7 +534,7 @@ CvoxBrailleInputHandlerUnitTest.prototype = { } }; -TEST_F('CvoxBrailleInputHandlerUnitTest', 'ConnectFromUnknownExtension', +TEST_F('ChromeVoxBrailleInputHandlerUnitTest', 'ConnectFromUnknownExtension', function() { this.port.sender.id = 'your unknown friend'; chrome.runtime.onConnectExternal.getListener()(this.port); @@ -542,7 +542,7 @@ TEST_F('CvoxBrailleInputHandlerUnitTest', 'ConnectFromUnknownExtension', }); -TEST_F('CvoxBrailleInputHandlerUnitTest', 'NoTranslator', function() { +TEST_F('ChromeVoxBrailleInputHandlerUnitTest', 'NoTranslator', function() { var editor = this.createEditor(); editor.setContent('blah', 0); editor.setActive(true); @@ -554,7 +554,7 @@ TEST_F('CvoxBrailleInputHandlerUnitTest', 'NoTranslator', function() { }); -TEST_F('CvoxBrailleInputHandlerUnitTest', 'InputUncontracted', function() { +TEST_F('ChromeVoxBrailleInputHandlerUnitTest', 'InputUncontracted', function() { this.translatorManager.setTranslators(this.uncontractedTranslator, null); var editor = this.createEditor(); editor.setActive(true); @@ -581,7 +581,7 @@ TEST_F('CvoxBrailleInputHandlerUnitTest', 'InputUncontracted', function() { }); -TEST_F('CvoxBrailleInputHandlerUnitTest', 'InputContracted', function() { +TEST_F('ChromeVoxBrailleInputHandlerUnitTest', 'InputContracted', function() { var editor = this.createEditor(); this.translatorManager.setTranslators(this.contractedTranslator, this.uncontractedTranslator); @@ -641,7 +641,7 @@ TEST_F('CvoxBrailleInputHandlerUnitTest', 'InputContracted', function() { }); -TEST_F('CvoxBrailleInputHandlerUnitTest', 'TypingUrlWithContracted', +TEST_F('ChromeVoxBrailleInputHandlerUnitTest', 'TypingUrlWithContracted', function() { var editor = this.createEditor(); this.translatorManager.setTranslators(this.contractedTranslator, @@ -665,7 +665,7 @@ TEST_F('CvoxBrailleInputHandlerUnitTest', 'TypingUrlWithContracted', }); -TEST_F('CvoxBrailleInputHandlerUnitTest', 'Backspace', function() { +TEST_F('ChromeVoxBrailleInputHandlerUnitTest', 'Backspace', function() { var editor = this.createEditor(); this.translatorManager.setTranslators(this.contractedTranslator, this.uncontractedTranslator); @@ -695,7 +695,7 @@ TEST_F('CvoxBrailleInputHandlerUnitTest', 'Backspace', function() { }); -TEST_F('CvoxBrailleInputHandlerUnitTest', 'KeysImeNotActive', function() { +TEST_F('ChromeVoxBrailleInputHandlerUnitTest', 'KeysImeNotActive', function() { var editor = this.createEditor(); this.sendKeyEvent('Enter'); this.sendKeyEvent('ArrowUp'); diff --git a/chrome/browser/resources/chromeos/chromevox/braille/braille_table_test.extjs b/chrome/browser/resources/chromeos/chromevox/braille/braille_table_test.extjs index 6adae04396520e..c778bd795a4178 100644 --- a/chrome/browser/resources/chromeos/chromevox/braille/braille_table_test.extjs +++ b/chrome/browser/resources/chromeos/chromevox/braille/braille_table_test.extjs @@ -13,11 +13,11 @@ GEN_INCLUDE(['../testing/chromevox_e2e_test_base.js', * @constructor * @extends {ChromeVoxE2ETest} */ -function CvoxBrailleTableTest() { +function ChromeVoxBrailleTableTest() { ChromeVoxE2ETest.call(this); } -CvoxBrailleTableTest.prototype = { +ChromeVoxBrailleTableTest.prototype = { __proto__: ChromeVoxE2ETest.prototype, }; @@ -25,7 +25,7 @@ CvoxBrailleTableTest.prototype = { * Tests that {@code getAll} can fetch and parse the tables file. * NOTE: This will need to be adjusted when more tables are added. */ -TEST_F('CvoxBrailleTableTest', 'testGetAllAndValidate', function() { +TEST_F('ChromeVoxBrailleTableTest', 'testGetAllAndValidate', function() { cvox.BrailleTable.getAll(this.newCallback(function(tables) { expectEquals(68, tables.length); assertNotNullNorUndefined( @@ -40,7 +40,7 @@ TEST_F('CvoxBrailleTableTest', 'testGetAllAndValidate', function() { }); /** Tests getDisplayName for some specific representative cases. */ -TEST_F('CvoxBrailleTableTest', 'testGetDisplayName', function() { +TEST_F('ChromeVoxBrailleTableTest', 'testGetDisplayName', function() { cvox.BrailleTable.getAll(this.newCallback(function(tables) { var table = cvox.BrailleTable.forId(tables, 'bg-comp8'); expectEquals('Bulgarian', cvox.BrailleTable.getDisplayName(table)); @@ -55,7 +55,7 @@ TEST_F('CvoxBrailleTableTest', 'testGetDisplayName', function() { /** * Tests the getUncontracted function. */ -TEST_F('CvoxBrailleTableTest', 'testGetUncontracted', function() { +TEST_F('ChromeVoxBrailleTableTest', 'testGetUncontracted', function() { cvox.BrailleTable.getAll(this.newCallback(function(tables) { function expectUncontracted(uncontractedId, idToCheck) { var checkedTable = cvox.BrailleTable.forId(tables, idToCheck); diff --git a/chrome/browser/resources/chromeos/chromevox/braille/braille_translator_manager_test.extjs b/chrome/browser/resources/chromeos/chromevox/braille/braille_translator_manager_test.extjs index ea5dbddafd05ac..ec4ce84979f218 100644 --- a/chrome/browser/resources/chromeos/chromevox/braille/braille_translator_manager_test.extjs +++ b/chrome/browser/resources/chromeos/chromevox/braille/braille_translator_manager_test.extjs @@ -13,11 +13,11 @@ GEN_INCLUDE(['../testing/chromevox_e2e_test_base.js', * @constructor * @extends {ChromeVoxE2ETest} */ -function CvoxBrailleTranslatorManagerTest() { +function ChromeVoxBrailleTranslatorManagerTest() { ChromeVoxE2ETest.call(this); } -CvoxBrailleTranslatorManagerTest.prototype = { +ChromeVoxBrailleTranslatorManagerTest.prototype = { __proto__: ChromeVoxE2ETest.prototype, /** @override */ @@ -78,7 +78,7 @@ function callOnce(callback) { }; } -TEST_F('CvoxBrailleTranslatorManagerTest', 'testInitial', function() { +TEST_F('ChromeVoxBrailleTranslatorManagerTest', 'testInitial', function() { assertEquals(null, this.manager.getExpandingTranslator()); assertEquals(null, this.manager.getDefaultTranslator()); assertEquals(null, this.manager.getUncontractedTranslator()); @@ -89,7 +89,7 @@ TEST_F('CvoxBrailleTranslatorManagerTest', 'testInitial', function() { }); }); -TEST_F('CvoxBrailleTranslatorManagerTest', 'testRefreshWithoutChange', +TEST_F('ChromeVoxBrailleTranslatorManagerTest', 'testRefreshWithoutChange', function() { this.addChangeListener(function() { assertNotEquals(null, this.manager.getExpandingTranslator()); @@ -101,7 +101,7 @@ TEST_F('CvoxBrailleTranslatorManagerTest', 'testRefreshWithoutChange', }); }); -TEST_F('CvoxBrailleTranslatorManagerTest', 'testRefreshWithChange', +TEST_F('ChromeVoxBrailleTranslatorManagerTest', 'testRefreshWithChange', function() { this.addChangeListener(function() { assertNotEquals(null, this.manager.getExpandingTranslator()); diff --git a/chrome/browser/resources/chromeos/chromevox/braille/expanding_braille_translator_test.unitjs b/chrome/browser/resources/chromeos/chromevox/braille/expanding_braille_translator_test.unitjs index 0b772a516881d5..64541cc452e70b 100644 --- a/chrome/browser/resources/chromeos/chromevox/braille/expanding_braille_translator_test.unitjs +++ b/chrome/browser/resources/chromeos/chromevox/braille/expanding_braille_translator_test.unitjs @@ -11,9 +11,9 @@ GEN_INCLUDE(['../testing/chromevox_unittest_base.js', * @constructor * @extends {ChromeVoxUnitTestBase} */ -function CvoxExpandingBrailleTranslatorUnitTest() {} +function ChromeVoxExpandingBrailleTranslatorUnitTest() {} -CvoxExpandingBrailleTranslatorUnitTest.prototype = { +ChromeVoxExpandingBrailleTranslatorUnitTest.prototype = { __proto__: ChromeVoxUnitTestBase.prototype, /** @override */ @@ -78,7 +78,7 @@ function assertArrayBufferMatches(expected, actual) { } } -TEST_F('CvoxExpandingBrailleTranslatorUnitTest', 'TranslationError', +TEST_F('ChromeVoxExpandingBrailleTranslatorUnitTest', 'TranslationError', function() { var text = new Spannable('error ok', new cvox.ValueSpan()); text.setSpan(new cvox.ValueSelectionSpan, 0, 0); @@ -255,7 +255,7 @@ function createText(text, opt_selectionStart, opt_selectionEnd, opt_style) { var TEXT = 'Hello, world!'; -TEST_F('CvoxExpandingBrailleTranslatorUnitTest', 'successfulTranslations', +TEST_F('ChromeVoxExpandingBrailleTranslatorUnitTest', 'successfulTranslations', function() { /** * Dictionary of test strings, keyed on a descriptive name for the @@ -313,7 +313,7 @@ TEST_F('CvoxExpandingBrailleTranslatorUnitTest', 'successfulTranslations', assertEquals(totalExpectedTranslationTests, totalRunTranslationTests); }); -TEST_F('CvoxExpandingBrailleTranslatorUnitTest', 'StyleTranslations', +TEST_F('ChromeVoxExpandingBrailleTranslatorUnitTest', 'StyleTranslations', function() { var formTypeMap = {}; formTypeMap[cvox.LibLouis.FormType.BOLD] = 'b'; diff --git a/chrome/browser/resources/chromeos/chromevox/braille/liblouis_test.extjs b/chrome/browser/resources/chromeos/chromevox/braille/liblouis_test.extjs index ee2533c0e49d50..c5e88e3f796866 100644 --- a/chrome/browser/resources/chromeos/chromevox/braille/liblouis_test.extjs +++ b/chrome/browser/resources/chromeos/chromevox/braille/liblouis_test.extjs @@ -15,11 +15,11 @@ GEN_INCLUDE(['../testing/chromevox_e2e_test_base.js', * @constructor * @extends {ChromeVoxE2ETest} */ -function CvoxLibLouisTest() { +function ChromeVoxLibLouisTest() { ChromeVoxE2ETest.call(this); } -CvoxLibLouisTest.prototype = { +ChromeVoxLibLouisTest.prototype = { __proto__: ChromeVoxE2ETest.prototype, createLiblouis: function() { @@ -48,7 +48,7 @@ function assertEqualsUint8Array(expected, actual) { assertEqualsJSON(expected, as_array); } -TEST_F('CvoxLibLouisTest', 'checkAllTables', function() { +TEST_F('ChromeVoxLibLouisTest', 'checkAllTables', function() { var liblouis = this.createAndAttachLiblouis(); cvox.BrailleTable.getAll(this.newCallback(function(tables) { var i = 0; @@ -66,7 +66,7 @@ TEST_F('CvoxLibLouisTest', 'checkAllTables', function() { }.bind(this))); }); -TEST_F('CvoxLibLouisTest', 'testTranslateComputerBraille', function() { +TEST_F('ChromeVoxLibLouisTest', 'testTranslateComputerBraille', function() { var liblouis = this.createAndAttachLiblouis(); this.withTranslator(liblouis, 'en-us-comp8.ctb', function(translator) { translator.translate('Hello!', [], this.newCallback( @@ -78,7 +78,7 @@ TEST_F('CvoxLibLouisTest', 'testTranslateComputerBraille', function() { }); }); -TEST_F('CvoxLibLouisTest', 'testBackTranslateComputerBraille', function() { +TEST_F('ChromeVoxLibLouisTest', 'testBackTranslateComputerBraille', function() { var liblouis = this.createAndAttachLiblouis(); this.withTranslator(liblouis, 'en-us-comp8.ctb', function(translator) { var cells = new Uint8Array([0x53, 0x11, 0x07, 0x07, 0x15, 0x2e]); @@ -88,7 +88,7 @@ TEST_F('CvoxLibLouisTest', 'testBackTranslateComputerBraille', function() { }); }); -TEST_F('CvoxLibLouisTest', 'testTranslateGermanGrade2Braille', function() { +TEST_F('ChromeVoxLibLouisTest', 'testTranslateGermanGrade2Braille', function() { var liblouis = this.createAndAttachLiblouis(); // This is one of the moderately large tables. this.withTranslator(liblouis, 'de-de-g2.ctb', function(translator) { @@ -101,7 +101,7 @@ TEST_F('CvoxLibLouisTest', 'testTranslateGermanGrade2Braille', function() { }); }); -TEST_F('CvoxLibLouisTest', 'testBackTranslateGermanComputerBraille', function() { +TEST_F('ChromeVoxLibLouisTest', 'testBackTranslateGermanComputerBraille', function() { var liblouis = this.createAndAttachLiblouis(); this.withTranslator(liblouis, 'de-de-comp8.ctb', function(translator) { var cells = new Uint8Array([0xb3]); @@ -111,7 +111,7 @@ TEST_F('CvoxLibLouisTest', 'testBackTranslateGermanComputerBraille', function() }); }); -TEST_F('CvoxLibLouisTest', 'testBackTranslateEmptyCells', function() { +TEST_F('ChromeVoxLibLouisTest', 'testBackTranslateEmptyCells', function() { var liblouis = this.createAndAttachLiblouis(); this.withTranslator(liblouis, 'de-de-comp8.ctb', function(translator) { translator.backTranslate( @@ -123,7 +123,7 @@ TEST_F('CvoxLibLouisTest', 'testBackTranslateEmptyCells', function() { }); }); -TEST_F('CvoxLibLouisTest', 'testGetTranslatorBeforeAttach', function() { +TEST_F('ChromeVoxLibLouisTest', 'testGetTranslatorBeforeAttach', function() { var liblouis = this.createLiblouis(); assertFalse(liblouis.isAttached()); this.withTranslator(liblouis, 'en-us-comp8.ctb', function(translator) { @@ -131,14 +131,14 @@ TEST_F('CvoxLibLouisTest', 'testGetTranslatorBeforeAttach', function() { }); }); -TEST_F('CvoxLibLouisTest', 'testGetInvalidTranslator', function() { +TEST_F('ChromeVoxLibLouisTest', 'testGetInvalidTranslator', function() { var liblouis = this.createAndAttachLiblouis(); this.withTranslator(liblouis, 'nonexistant-table', function(translator) { assertEquals(null, translator); }); }); -TEST_F('CvoxLibLouisTest', 'testTranslateAfterDetach', function() { +TEST_F('ChromeVoxLibLouisTest', 'testTranslateAfterDetach', function() { var liblouis = this.createAndAttachLiblouis(); this.withTranslator(liblouis, 'de-de-comp8.ctb', function(translator) { liblouis.detach(); @@ -151,7 +151,7 @@ TEST_F('CvoxLibLouisTest', 'testTranslateAfterDetach', function() { }); }); -TEST_F('CvoxLibLouisTest', 'testDetachWithOutstandingCallbacks', function() { +TEST_F('ChromeVoxLibLouisTest', 'testDetachWithOutstandingCallbacks', function() { var liblouis = this.createAndAttachLiblouis(); this.withTranslator(liblouis, 'de-de-comp8.ctb', function(translator) { var called = false; @@ -167,7 +167,7 @@ TEST_F('CvoxLibLouisTest', 'testDetachWithOutstandingCallbacks', function() { }); }); -TEST_F('CvoxLibLouisTest', 'testKeyEventStaticData', function() { +TEST_F('ChromeVoxLibLouisTest', 'testKeyEventStaticData', function() { var liblouis = this.createAndAttachLiblouis(); this.withTranslator(liblouis, 'en-us-comp8.ctb', function(translator) { translator.translate('abcdefghijklmnopqrstuvwxyz 0123456789', [], diff --git a/chrome/browser/resources/chromeos/chromevox/braille/pan_strategy_test.unitjs b/chrome/browser/resources/chromeos/chromevox/braille/pan_strategy_test.unitjs index 161d4fa327ace0..0ce7de27629181 100644 --- a/chrome/browser/resources/chromeos/chromevox/braille/pan_strategy_test.unitjs +++ b/chrome/browser/resources/chromeos/chromevox/braille/pan_strategy_test.unitjs @@ -9,9 +9,9 @@ GEN_INCLUDE(['../testing/chromevox_unittest_base.js']); * @constructor * @extends {ChromeVoxUnitTestBase} */ -function CvoxPanStrategyUnitTest() {} +function ChromeVoxPanStrategyUnitTest() {} -CvoxPanStrategyUnitTest.prototype = { +ChromeVoxPanStrategyUnitTest.prototype = { __proto__: ChromeVoxUnitTestBase.prototype, /** @override */ @@ -36,7 +36,7 @@ function createArrayBuffer(content) { return result; } - TEST_F('CvoxPanStrategyUnitTest', 'FixedPanning', function() { + TEST_F('ChromeVoxPanStrategyUnitTest', 'FixedPanning', function() { var panner = new cvox.PanStrategy(); panner.setPanStrategy(false); @@ -89,7 +89,8 @@ function createArrayBuffer(content) { assertEqualsJSON({firstRow: 0, lastRow: 1}, panner.viewPort); }); -TEST_F('CvoxPanStrategyUnitTest', 'WrappedPanningSingleLine', function() { +TEST_F('ChromeVoxPanStrategyUnitTest', 'WrappedPanningSingleLine', + function() { var panner = new cvox.PanStrategy(); panner.setPanStrategy(true); @@ -142,7 +143,7 @@ TEST_F('CvoxPanStrategyUnitTest', 'WrappedPanningSingleLine', function() { panner.getCurrentBrailleViewportContents()); }); -TEST_F('CvoxPanStrategyUnitTest', 'WrappedPanningMultiline', function() { +TEST_F('ChromeVoxPanStrategyUnitTest', 'WrappedPanningMultiline', function() { var panner = new cvox.PanStrategy(); panner.setPanStrategy(true); @@ -172,7 +173,7 @@ TEST_F('CvoxPanStrategyUnitTest', 'WrappedPanningMultiline', function() { panner.getCurrentBrailleViewportContents()); }); -TEST_F('CvoxPanStrategyUnitTest', 'FixedSetContent', function() { +TEST_F('ChromeVoxPanStrategyUnitTest', 'FixedSetContent', function() { var panner = new cvox.PanStrategy(); panner.setPanStrategy(false); @@ -188,7 +189,7 @@ TEST_F('CvoxPanStrategyUnitTest', 'FixedSetContent', function() { assertArraysEquals(expectedMappingValue, panner.brailleToText); }); -TEST_F('CvoxPanStrategyUnitTest', 'WrappedSetContent', function() { +TEST_F('ChromeVoxPanStrategyUnitTest', 'WrappedSetContent', function() { var panner = new cvox.PanStrategy(); panner.setPanStrategy(true); @@ -245,7 +246,8 @@ TEST_F('CvoxPanStrategyUnitTest', 'WrappedSetContent', function() { assertArraysEquals(expectedMappingValue, panner.brailleToText); }); -TEST_F('CvoxPanStrategyUnitTest', 'getCurrentTextViewportContents', function() { +TEST_F('ChromeVoxPanStrategyUnitTest', 'getCurrentTextViewportContents', + function() { var panner = new cvox.PanStrategy(); panner.setPanStrategy(true); @@ -269,7 +271,7 @@ TEST_F('CvoxPanStrategyUnitTest', 'getCurrentTextViewportContents', function() { assertEquals('789', panner.getCurrentTextViewportContents()); }); -TEST_F('CvoxPanStrategyUnitTest', 'WrappedUnwrappedCursors', function() { +TEST_F('ChromeVoxPanStrategyUnitTest', 'WrappedUnwrappedCursors', function() { var panner = new cvox.PanStrategy(); panner.setPanStrategy(true); diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/event_watcher_test.unitjs b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/event_watcher_test.unitjs index 6582e122f68909..23184e4344d58e 100644 --- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/event_watcher_test.unitjs +++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/event_watcher_test.unitjs @@ -10,11 +10,11 @@ GEN_INCLUDE(['../../testing/chromevox_unittest_base.js']); * @constructor * @extends {ChromeVoxUnitTestBase} */ -function CvoxEventWatcherUnitTest() { +function ChromeVoxEventWatcherUnitTest() { ChromeVoxUnitTestBase.call(this); } -CvoxEventWatcherUnitTest.prototype = { +ChromeVoxEventWatcherUnitTest.prototype = { __proto__: ChromeVoxUnitTestBase.prototype, /** @override */ @@ -84,7 +84,7 @@ CvoxEventWatcherUnitTest.prototype = { } }; -TEST_F('CvoxEventWatcherUnitTest', 'ButtonFocusFeedback', function() { +TEST_F('ChromeVoxEventWatcherUnitTest', 'ButtonFocusFeedback', function() { this.loadHtml('
'); this.setFocus('alpha'); this.waitForCalm(this.assertSpoken, 'Alpha Button'); @@ -93,7 +93,7 @@ TEST_F('CvoxEventWatcherUnitTest', 'ButtonFocusFeedback', function() { /** * Test feedback when focusing links backwards (like shift-tabbing). */ -TEST_F('CvoxEventWatcherUnitTest', 'FocusLinksBackwards', function() { +TEST_F('ChromeVoxEventWatcherUnitTest', 'FocusLinksBackwards', function() { this.loadHtml('

before

' + '

1

' + '

2

' + @@ -113,7 +113,7 @@ TEST_F('CvoxEventWatcherUnitTest', 'FocusLinksBackwards', function() { /** * Test feedback when an editable text field gets focus. */ -TEST_F('CvoxEventWatcherUnitTest', 'TextFocusFeedback', function() { +TEST_F('ChromeVoxEventWatcherUnitTest', 'TextFocusFeedback', function() { this.loadHtml('
' + '' + '' + @@ -126,7 +126,8 @@ TEST_F('CvoxEventWatcherUnitTest', 'TextFocusFeedback', function() { /** * Test feedback when a contenteditable field gets focus. */ -TEST_F('CvoxEventWatcherUnitTest', 'ContentEditableFocusFeedback', function() { +TEST_F('ChromeVoxEventWatcherUnitTest', 'ContentEditableFocusFeedback', + function() { this.loadHtml('
' + '' + '
This is editable
' + @@ -140,7 +141,7 @@ TEST_F('CvoxEventWatcherUnitTest', 'ContentEditableFocusFeedback', function() { * Test feedback when an item in an dialog receives focus and then focus * leaves the dialog. */ -TEST_F('CvoxEventWatcherUnitTest', 'DialogFeedback', function() { +TEST_F('ChromeVoxEventWatcherUnitTest', 'DialogFeedback', function() { this.loadHtml('
' + '' + '
' + @@ -166,7 +167,7 @@ TEST_F('CvoxEventWatcherUnitTest', 'DialogFeedback', function() { /** * Test feedback when an item in an alert dialog receives focus. */ -TEST_F('CvoxEventWatcherUnitTest', 'AlertDialogFeedback', function() { +TEST_F('ChromeVoxEventWatcherUnitTest', 'AlertDialogFeedback', function() { this.loadHtml('
' + '
' + '

Are you sure you want to install Windows?

' + @@ -187,7 +188,7 @@ TEST_F('CvoxEventWatcherUnitTest', 'AlertDialogFeedback', function() { * quickly - make sure the notification that we entered the dialog * isn't interrupted. */ -TEST_F('CvoxEventWatcherUnitTest', 'DoubleFocusAlertDialogFeedback', +TEST_F('ChromeVoxEventWatcherUnitTest', 'DoubleFocusAlertDialogFeedback', function() { this.loadHtml('
' + '
' + @@ -216,7 +217,7 @@ TEST_F('CvoxEventWatcherUnitTest', 'DoubleFocusAlertDialogFeedback', /** * Test recovery when a dialog box closes and the user sends a tab event. */ -TEST_F('CvoxEventWatcherUnitTest', 'CloseDialogTabRecovery', function() { +TEST_F('ChromeVoxEventWatcherUnitTest', 'CloseDialogTabRecovery', function() { this.loadHtml('
' + '

first node

' + '' + @@ -247,7 +248,7 @@ TEST_F('CvoxEventWatcherUnitTest', 'CloseDialogTabRecovery', function() { /** * Test feedback when a list box with an active descendant receives focus. */ -TEST_F('CvoxEventWatcherUnitTest', 'ListBoxFeedback', function() { +TEST_F('ChromeVoxEventWatcherUnitTest', 'ListBoxFeedback', function() { this.loadHtml('
' + '

My listbox

' + '
' + '

My listbox

' + '
' + @@ -302,7 +303,8 @@ TEST_F('CvoxEventWatcherUnitTest', 'ListBoxOptionFeedback', function() { * Test feedback when the list box is setting focus in response to arrow * (or some other) keypress and the user is also using ChromeVox navigation. */ -TEST_F('CvoxEventWatcherUnitTest', 'ListBoxOptionFeedbackWithFocus', function() { +TEST_F('ChromeVoxEventWatcherUnitTest', 'ListBoxOptionFeedbackWithFocus', + function() { this.loadHtml('
' + '

My listbox

' + '
' + @@ -333,7 +335,7 @@ TEST_F('CvoxEventWatcherUnitTest', 'ListBoxOptionFeedbackWithFocus', function() * The low-level details are tested in editable_text_test.js, this is * a higher-level test of how that code interacts with the event watcher. */ -TEST_F('CvoxEventWatcherUnitTest', 'EditableText', function() { +TEST_F('ChromeVoxEventWatcherUnitTest', 'EditableText', function() { cvox.ChromeVoxEditableTextBase.eventTypingEcho = false; this.loadHtml('
' + '' + @@ -369,7 +371,7 @@ TEST_F('CvoxEventWatcherUnitTest', 'EditableText', function() { * The low-level details are tested in editable_text_test.js, this is * a higher-level test of how that code interacts with the event watcher. */ -TEST_F('CvoxEventWatcherUnitTest', 'EditableTextListbox', function() { +TEST_F('ChromeVoxEventWatcherUnitTest', 'EditableTextListbox', function() { this.loadHtml('
' + '' + '' + @@ -402,7 +404,7 @@ TEST_F('CvoxEventWatcherUnitTest', 'EditableTextListbox', function() { * The low-level details are tested in editable_text_test.js, this is * a higher-level test of how that code interacts with the event watcher. */ -TEST_F('CvoxEventWatcherUnitTest', 'EditableTextListboxUpdatingInput', +TEST_F('ChromeVoxEventWatcherUnitTest', 'EditableTextListboxUpdatingInput', function() { cvox.ChromeVoxEditableTextBase.shouldSpeakInsertions = true; this.loadHtml('
' + @@ -434,7 +436,7 @@ TEST_F('CvoxEventWatcherUnitTest', 'EditableTextListboxUpdatingInput', /** * Tests navigating through a multiline text area. */ -TEST_F('CvoxEventWatcherUnitTest', 'MultilineNavigation', function() { +TEST_F('ChromeVoxEventWatcherUnitTest', 'MultilineNavigation', function() { this.loadHtml('
diff --git a/chrome/browser/resources/chromeos/chromevox/common/editable_text_test.unitjs b/chrome/browser/resources/chromeos/chromevox/common/editable_text_test.unitjs index 7a78aa1c6e13b2..c72d7d599cd7b4 100644 --- a/chrome/browser/resources/chromeos/chromevox/common/editable_text_test.unitjs +++ b/chrome/browser/resources/chromeos/chromevox/common/editable_text_test.unitjs @@ -88,9 +88,9 @@ TestBraille.assertContent = function(text, opt_start, opt_end) { * @constructor * @extends {ChromeVoxUnitTestBase} */ -function CvoxEditableTextUnitTest() {} +function ChromeVoxEditableTextUnitTest() {} -CvoxEditableTextUnitTest.prototype = { +ChromeVoxEditableTextUnitTest.prototype = { __proto__: ChromeVoxUnitTestBase.prototype, /** @override */ @@ -174,7 +174,7 @@ CvoxEditableTextUnitTest.prototype = { } }; -TEST_F('CvoxEditableTextUnitTest', 'CursorNavigation', function() { +TEST_F('ChromeVoxEditableTextUnitTest', 'CursorNavigation', function() { var tts = new TestTts(); var obj = new cvox.ChromeVoxEditableTextBase('Hello', 0, 0, false, tts); @@ -193,7 +193,7 @@ TEST_F('CvoxEditableTextUnitTest', 'CursorNavigation', function() { }); /** Test typing words. */ -TEST_F('CvoxEditableTextUnitTest', 'TypingWords', function() { +TEST_F('ChromeVoxEditableTextUnitTest', 'TypingWords', function() { var tts = new TestTts(); var obj = new cvox.ChromeVoxEditableTextBase('', 0, 0, false, tts); obj.changed(new cvox.TextChangeEvent('H', 1, 1)); @@ -252,7 +252,7 @@ TEST_F('CvoxEditableTextUnitTest', 'TypingWords', function() { }); /** Test selection. */ -TEST_F('CvoxEditableTextUnitTest', 'Selection', function() { +TEST_F('ChromeVoxEditableTextUnitTest', 'Selection', function() { var tts = new TestTts(); var obj = new cvox.ChromeVoxEditableTextBase('Hello, world.', 0, 0, false, tts); @@ -285,7 +285,7 @@ TEST_F('CvoxEditableTextUnitTest', 'Selection', function() { /** Test multi-line text. */ -TEST_F('CvoxEditableTextUnitTest', 'MultiLineText', function() { +TEST_F('ChromeVoxEditableTextUnitTest', 'MultiLineText', function() { var str = 'This string\nspans\nfive lines.\n \n'; var tts = new TestTts(); var obj = new cvox.ChromeVoxEditableElement(null, str, 0, 0, false, tts); @@ -345,7 +345,7 @@ TEST_F('CvoxEditableTextUnitTest', 'MultiLineText', function() { * address bar, and it's being autocompleted. Sometimes it's autocompleted * as they type, sometimes there's a short delay. */ -TEST_F('CvoxEditableTextUnitTest', 'Autocomplete', function() { +TEST_F('ChromeVoxEditableTextUnitTest', 'Autocomplete', function() { var tts = new TestTts(); var obj = new cvox.ChromeVoxEditableTextBase('', 0, 0, false, tts); @@ -395,7 +395,7 @@ TEST_F('CvoxEditableTextUnitTest', 'Autocomplete', function() { /** * Test a few common scenarios where text is replaced. */ -TEST_F('CvoxEditableTextUnitTest', 'ReplacingText', function() { +TEST_F('ChromeVoxEditableTextUnitTest', 'ReplacingText', function() { // Initial value is Alabama. var tts = new TestTts(); var obj = new cvox.ChromeVoxEditableTextBase('Alabama', 0, 0, false, tts); @@ -434,7 +434,7 @@ TEST_F('CvoxEditableTextUnitTest', 'ReplacingText', function() { /** * Test feedback when text changes in a long sentence. */ -TEST_F('CvoxEditableTextUnitTest', 'ReplacingLongText', function() { +TEST_F('ChromeVoxEditableTextUnitTest', 'ReplacingLongText', function() { var tts = new TestTts(); var obj = new cvox.ChromeVoxEditableTextBase( 'I love deadlines. I like the whooshing sound they make as they fly by.', @@ -449,7 +449,7 @@ TEST_F('CvoxEditableTextUnitTest', 'ReplacingLongText', function() { }); /** Tests character echo. */ -TEST_F('CvoxEditableTextUnitTest', 'CharacterEcho', function() { +TEST_F('ChromeVoxEditableTextUnitTest', 'CharacterEcho', function() { cvox.ChromeVox.typingEcho = cvox.TypingEcho.CHARACTER; var tts = new TestTts(); var obj = new cvox.ChromeVoxEditableTextBase('', 0, 0, false, tts); @@ -473,7 +473,7 @@ TEST_F('CvoxEditableTextUnitTest', 'CharacterEcho', function() { /** Tests word echo. */ -TEST_F('CvoxEditableTextUnitTest', 'WordEcho', function() { +TEST_F('ChromeVoxEditableTextUnitTest', 'WordEcho', function() { cvox.ChromeVox.typingEcho = cvox.TypingEcho.WORD; var tts = new TestTts(); var obj = new cvox.ChromeVoxEditableTextBase('', 0, 0, false, tts); @@ -497,7 +497,7 @@ TEST_F('CvoxEditableTextUnitTest', 'WordEcho', function() { /** Tests no echo. */ -TEST_F('CvoxEditableTextUnitTest', 'NoEcho', function() { +TEST_F('ChromeVoxEditableTextUnitTest', 'NoEcho', function() { cvox.ChromeVox.typingEcho = cvox.TypingEcho.NONE; var tts = new TestTts(); var obj = new cvox.ChromeVoxEditableTextBase('', 0, 0, false, tts); @@ -520,7 +520,8 @@ TEST_F('CvoxEditableTextUnitTest', 'NoEcho', function() { }); /** Tests cursor movement in an input field by character. */ -TEST_F('CvoxEditableTextUnitTest', 'CursorMovementByCharacter', function() { +TEST_F('ChromeVoxEditableTextUnitTest', 'CursorMovementByCharacter', + function() { var test = this.setUpForCursorTest_('input'); var editable = test.editable, prepare = test.prepare, expect = test.expect; try { @@ -549,7 +550,7 @@ TEST_F('CvoxEditableTextUnitTest', 'CursorMovementByCharacter', function() { }); /** Tests cursor movement in an input field by word. */ -TEST_F('CvoxEditableTextUnitTest', 'CursorMovementByWord', function() { +TEST_F('ChromeVoxEditableTextUnitTest', 'CursorMovementByWord', function() { var test = this.setUpForCursorTest_('input'); var editable = test.editable, prepare = test.prepare, expect = test.expect; try { @@ -584,7 +585,7 @@ TEST_F('CvoxEditableTextUnitTest', 'CursorMovementByWord', function() { }); /** Tests that character and word movement still work in 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 36a626a2e68272..b0e93ebbeeb807 100644 --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing_test.extjs +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing_test.extjs @@ -13,12 +13,12 @@ GEN_INCLUDE(['../../testing/mock_feedback.js']); * @constructor * @extends {ChromeVoxNextE2ETest} */ -function EditingTest() { +function ChromeVoxEditingTest() { ChromeVoxNextE2ETest.call(this); window.RoleType = chrome.automation.RoleType; } -EditingTest.prototype = { +ChromeVoxEditingTest.prototype = { __proto__: ChromeVoxNextE2ETest.prototype, /** @@ -50,7 +50,7 @@ line 3 */}; -TEST_F('EditingTest', 'Focus', function() { +TEST_F('ChromeVoxEditingTest', 'Focus', function() { var mockFeedback = this.createMockFeedback(); this.runWithLoadedTree(doc, function(root) { var singleLine = root.find({role: RoleType.TEXT_FIELD, @@ -73,7 +73,7 @@ TEST_F('EditingTest', 'Focus', function() { }); }); -TEST_F('EditingTest', 'Multiline', function() { +TEST_F('ChromeVoxEditingTest', 'Multiline', function() { var mockFeedback = this.createMockFeedback(); this.runWithLoadedTree(doc, function(root) { var textarea = root.find({role: RoleType.TEXT_FIELD, @@ -102,7 +102,7 @@ TEST_F('EditingTest', 'Multiline', function() { }); }); -TEST_F('EditingTest', 'TextButNoSelectionChange', function() { +TEST_F('ChromeVoxEditingTest', 'TextButNoSelectionChange', function() { var mockFeedback = this.createMockFeedback(); this.runWithLoadedTree( function() {/*! @@ -137,7 +137,7 @@ TEST_F('EditingTest', 'TextButNoSelectionChange', function() { }); }); -TEST_F('EditingTest', 'RichTextMoveByLine', function() { +TEST_F('ChromeVoxEditingTest', 'RichTextMoveByLine', function() { var mockFeedback = this.createMockFeedback(); this.runWithLoadedTree(function() {/*!
@@ -184,7 +184,7 @@ TEST_F('EditingTest', 'RichTextMoveByLine', function() { }); }); -TEST_F('EditingTest', 'RichTextMoveByCharacter', function() { +TEST_F('ChromeVoxEditingTest', 'RichTextMoveByCharacter', function() { var mockFeedback = this.createMockFeedback(); this.runWithLoadedTree(function() {/*!
This is a test.
@@ -254,7 +254,7 @@ TEST_F('EditingTest', 'RichTextMoveByCharacter', function() { }); // Tests specifically for cursor workarounds. -TEST_F('EditingTest', 'RichTextMoveByCharacterNodeWorkaround', function() { +TEST_F('ChromeVoxEditingTest', 'RichTextMoveByCharacterNodeWorkaround', function() { var mockFeedback = this.createMockFeedback(); this.runWithLoadedTree(function() {/*!
hello world
@@ -295,7 +295,7 @@ TEST_F('EditingTest', 'RichTextMoveByCharacterNodeWorkaround', function() { }); }); -TEST_F('EditingTest', 'RichTextMoveByCharacterEndOfLine', function() { +TEST_F('ChromeVoxEditingTest', 'RichTextMoveByCharacterEndOfLine', function() { var mockFeedback = this.createMockFeedback(); this.runWithLoadedTree(function() {/*!
Test
@@ -331,7 +331,7 @@ TEST_F('EditingTest', 'RichTextMoveByCharacterEndOfLine', function() { }); }); -TEST_F('EditingTest', 'RichTextLinkOutput', function() { +TEST_F('ChromeVoxEditingTest', 'RichTextLinkOutput', function() { var mockFeedback = this.createMockFeedback(); this.runWithLoadedTree(function() {/*! @@ -375,7 +375,7 @@ TEST_F('EditingTest', 'RichTextLinkOutput', function() { }); }); -TEST_F('EditingTest', 'RichTextExtendByCharacter', function() { +TEST_F('ChromeVoxEditingTest', 'RichTextExtendByCharacter', function() { var mockFeedback = this.createMockFeedback(); this.runWithLoadedTree(function() {/*!
Te
st
@@ -409,7 +409,7 @@ TEST_F('EditingTest', 'RichTextExtendByCharacter', function() { }); }); -TEST_F('EditingTest', 'RichTextImageByCharacter', function() { +TEST_F('ChromeVoxEditingTest', 'RichTextImageByCharacter', function() { var mockFeedback = this.createMockFeedback(); this.runWithLoadedTree(function() {/*!

@@ -470,13 +470,17 @@ TEST_F('EditingTest', 'RichTextImageByCharacter', function() { }); }); -TEST_F('EditingTest', 'RichTextSelectByLine', function() { +TEST_F('ChromeVoxEditingTest', 'RichTextSelectByLine', function() { var mockFeedback = this.createMockFeedback(); + // Use digit strings like "11111" and "22222" because the character widths + // of digits are always the same. This means the test can move down one line + // middle of "11111" and reliably hit a given character position in "22222", + // regardless of font configuration. https://crbug.com/898213 this.runWithLoadedTree(function() {/*!

- first line
- second line
- third line
+ 11111 line
+ 22222 line
+ 33333 line