Index: chrome/test/data/webui/settings/languages_page_browsertest.js |
diff --git a/chrome/test/data/webui/settings/languages_page_browsertest.js b/chrome/test/data/webui/settings/languages_page_browsertest.js |
index f3222f8ecf7544defa2da36ac088ecc4e59f225e..307c4018420d02b79b044ef941307000118ce54d 100644 |
--- a/chrome/test/data/webui/settings/languages_page_browsertest.js |
+++ b/chrome/test/data/webui/settings/languages_page_browsertest.js |
@@ -21,8 +21,7 @@ var languageSettings = languageSettings || {}; |
* @constructor |
* @extends {SettingsPageBrowserTest} |
*/ |
-function SettingsLanguagesPageBrowserTest() { |
-} |
+function SettingsLanguagesPageBrowserTest() {} |
SettingsLanguagesPageBrowserTest.prototype = { |
__proto__: SettingsPageBrowserTest.prototype, |
@@ -76,7 +75,8 @@ TEST_F('SettingsLanguagesPageBrowserTest', 'MAYBE_LanguagesPage', function() { |
test('manage languages', function() { |
var manageLanguagesButton = |
- languagesPage.$.languagesCollapse.querySelector('.list-button'); |
+ languagesPage.$.languagesCollapse.querySelector( |
+ '.list-button:last-of-type'); |
MockInteractions.tap(manageLanguagesButton); |
assertTrue(!!languagesPage.$$('settings-manage-languages-page')); |
}); |
@@ -87,8 +87,8 @@ TEST_F('SettingsLanguagesPageBrowserTest', 'MAYBE_LanguagesPage', function() { |
assertTrue(!!languageButton); |
MockInteractions.tap(languageButton); |
- var languageDetailPage = languagesPage.$$( |
- 'settings-language-detail-page'); |
+ var languageDetailPage = |
+ languagesPage.$$('settings-language-detail-page'); |
assertTrue(!!languageDetailPage); |
assertEquals('en-US', languageDetailPage.detail.language.code); |
}); |
@@ -99,7 +99,7 @@ TEST_F('SettingsLanguagesPageBrowserTest', 'MAYBE_LanguagesPage', function() { |
if (cr.isChromeOS) { |
assertTrue(inputMethodSettingsExist); |
var manageInputMethodsButton = |
- inputMethodsCollapse.querySelector('.list-button'); |
+ inputMethodsCollapse.querySelector('.list-button:last-of-type'); |
MockInteractions.tap(manageInputMethodsButton); |
assertTrue(!!languagesPage.$$('settings-manage-input-methods-page')); |
} else { |
@@ -114,7 +114,8 @@ TEST_F('SettingsLanguagesPageBrowserTest', 'MAYBE_LanguagesPage', function() { |
assertFalse(spellCheckSettingsExist); |
} else { |
assertTrue(spellCheckSettingsExist); |
- MockInteractions.tap(spellCheckCollapse.querySelector('.list-button')); |
+ MockInteractions.tap( |
+ spellCheckCollapse.querySelector('.list-button:last-of-type')); |
assertTrue(!!languagesPage.$$('settings-edit-dictionary-page')); |
} |
}); |