Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1088)

Unified Diff: chrome/test/data/webui/settings/search_engines_page_test.js

Issue 2518193002: MD Settings: change how text wraps for long search engine titles (Closed)
Patch Set: dpapad@ review Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/settings/search_engines_page/search_engine_entry.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « chrome/browser/resources/settings/search_engines_page/search_engine_entry.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698