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

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

Issue 2693253002: MD Settings: Restore Search engines table headers. (Closed)
Patch Set: fx tests Created 3 years, 10 months 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_engines_page.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 6f26ef0fba090ec45bcac6fdf4a557defac3a3bf..5c628d8d38030d158a41545817e6ff729ab51b21 100644
--- a/chrome/test/data/webui/settings/search_engines_page_test.js
+++ b/chrome/test/data/webui/settings/search_engines_page_test.js
@@ -162,12 +162,15 @@ 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 columns = entry.root.querySelectorAll('.column, #url-column');
- assertEquals(3, columns.length);
-
- assertEquals(searchEngine.displayName, columns[0].textContent);
- assertEquals(searchEngine.keyword, columns[1].textContent);
- assertEquals(searchEngine.url, columns[2].textContent);
+ assertEquals(
+ searchEngine.displayName,
+ entry.root.querySelector('#name-column').textContent.trim());
+ assertEquals(
+ searchEngine.keyword,
+ entry.root.querySelector('#keyword-column').textContent);
+ assertEquals(
+ searchEngine.url,
+ entry.root.querySelector('#url-column').textContent);
});
test('Remove_Enabled', function() {
« no previous file with comments | « chrome/browser/resources/settings/search_engines_page/search_engines_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698