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

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

Issue 2509543002: MD Settings: create a shared handler/browser proxy to control extensions (Closed)
Patch Set: merge 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 unified diff | Download patch
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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 } 334 }
335 335
336 function registerOmniboxExtensionEntryTests() { 336 function registerOmniboxExtensionEntryTests() {
337 suite('OmniboxExtensionEntryTests', function() { 337 suite('OmniboxExtensionEntryTests', function() {
338 /** @type {?SettingsOmniboxExtensionEntryElement} */ 338 /** @type {?SettingsOmniboxExtensionEntryElement} */
339 var entry = null; 339 var entry = null;
340 340
341 var browserProxy = null; 341 var browserProxy = null;
342 342
343 setup(function() { 343 setup(function() {
344 browserProxy = new settings_search.TestSearchEnginesBrowserProxy(); 344 browserProxy = new TestExtensionControlBrowserProxy();
345 settings.SearchEnginesBrowserProxyImpl.instance_ = browserProxy; 345 settings.ExtensionControlBrowserProxyImpl.instance_ = browserProxy;
346 PolymerTest.clearBody(); 346 PolymerTest.clearBody();
347 entry = document.createElement('settings-omnibox-extension-entry'); 347 entry = document.createElement('settings-omnibox-extension-entry');
348 entry.set('engine', createSampleOmniboxExtension()); 348 entry.set('engine', createSampleOmniboxExtension());
349 document.body.appendChild(entry); 349 document.body.appendChild(entry);
350 350
351 // Open action menu. 351 // Open action menu.
352 MockInteractions.tap(entry.$$('paper-icon-button')); 352 MockInteractions.tap(entry.$$('paper-icon-button'));
353 }); 353 });
354 354
355 teardown(function() { entry.remove(); }); 355 teardown(function() { entry.remove(); });
(...skipping 22 matching lines...) Expand all
378 378
379 return { 379 return {
380 registerTests: function() { 380 registerTests: function() {
381 registerDialogTests(); 381 registerDialogTests();
382 registerSearchEngineEntryTests(); 382 registerSearchEngineEntryTests();
383 registerOmniboxExtensionEntryTests(); 383 registerOmniboxExtensionEntryTests();
384 registerPageTests(); 384 registerPageTests();
385 }, 385 },
386 }; 386 };
387 }); 387 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698