Index: chrome/test/data/webui/settings/search_engines_page_test.js |
diff --git a/chrome/test/data/webui/settings/search_engines_page_test.js b/chrome/test/data/webui/settings/search_engines_page_test.js |
index ec389e0d7faf4efbce39a64a2f656b5ea70a8576..d4f684bdc4c34a30c2dc6ac70fd0eafc3a19ffba 100644 |
--- a/chrome/test/data/webui/settings/search_engines_page_test.js |
+++ b/chrome/test/data/webui/settings/search_engines_page_test.js |
@@ -162,17 +162,12 @@ cr.define('settings_search_engines_page', function() { |
// Test that the <search-engine-entry> is populated according to its |
// underlying SearchEngine model. |
test('Initialization', function() { |
- var nameElement = entry.$$('.name'); |
- assertTrue(!!nameElement); |
- assertEquals(searchEngine.displayName, nameElement.textContent); |
+ var columns = entry.root.querySelectorAll('.column, #url-column'); |
+ assertEquals(3, columns.length); |
- var keywordElement = entry.$$('.keyword-column'); |
- assertTrue(!!keywordElement); |
- assertEquals(searchEngine.keyword, keywordElement.textContent); |
- |
- var urlElement = entry.$$('.url-column'); |
- assertTrue(!!urlElement); |
- assertEquals(searchEngine.url, urlElement.textContent); |
+ assertEquals(searchEngine.displayName, columns[0].textContent); |
+ assertEquals(searchEngine.keyword, columns[1].textContent); |
+ assertEquals(searchEngine.url, columns[2].textContent); |
}); |
test('Remove_Enabled', function() { |