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

Side by Side Diff: chrome/test/data/webui/settings/search_engines_page_test.js

Issue 2529543002: MD Settings: indicate extension controlled search engines (Closed)
Patch Set: merge Created 4 years 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/webui/settings/search_engines_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('settings_search_engines_page', function() { 5 cr.define('settings_search_engines_page', function() {
6 /** 6 /**
7 * @param {boolean} canBeDefault 7 * @param {boolean} canBeDefault
8 * @param {boolean} canBeEdited 8 * @param {boolean} canBeEdited
9 * @param {boolean} canBeRemoved 9 * @param {boolean} canBeRemoved
10 * @return {!SearchEngine} 10 * @return {!SearchEngine}
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 }); 249 });
250 250
251 test('MakeDefault_Disabled', function() { 251 test('MakeDefault_Disabled', function() {
252 testButtonDisabled( 252 testButtonDisabled(
253 createSampleSearchEngine(false, true, true), 'makeDefault'); 253 createSampleSearchEngine(false, true, true), 'makeDefault');
254 }); 254 });
255 255
256 test('Edit_Disabled', function() { 256 test('Edit_Disabled', function() {
257 testButtonDisabled(createSampleSearchEngine(true, false, true), 'edit'); 257 testButtonDisabled(createSampleSearchEngine(true, false, true), 'edit');
258 }); 258 });
259
260 test('All_Disabled', function() {
261 entry.engine = createSampleSearchEngine(true, false, false);
262 Polymer.dom.flush();
263 assertTrue(entry.hasAttribute('show-dots_'));
264
265 entry.engine = createSampleSearchEngine(false, false, false);
266 Polymer.dom.flush();
267 assertFalse(entry.hasAttribute('show-dots_'));
268 });
259 }); 269 });
260 } 270 }
261 271
262 function registerPageTests() { 272 function registerPageTests() {
263 suite('SearchEnginePageTests', function() { 273 suite('SearchEnginePageTests', function() {
264 /** @type {?SettingsSearchEnginesPageElement} */ 274 /** @type {?SettingsSearchEnginesPageElement} */
265 var page = null; 275 var page = null;
266 276
267 var browserProxy = null; 277 var browserProxy = null;
268 278
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 383
374 return { 384 return {
375 registerTests: function() { 385 registerTests: function() {
376 registerDialogTests(); 386 registerDialogTests();
377 registerSearchEngineEntryTests(); 387 registerSearchEngineEntryTests();
378 registerOmniboxExtensionEntryTests(); 388 registerOmniboxExtensionEntryTests();
379 registerPageTests(); 389 registerPageTests();
380 }, 390 },
381 }; 391 };
382 }); 392 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/search_engines_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698