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

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

Issue 2669923002: MD Settings: Change search engine add button to a paper-button (Closed)
Patch Set: extract shared style into a class 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/settings/site_settings/site_list.html ('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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 querySelector('iron-list').items; 321 querySelector('iron-list').items;
322 assertEquals( 322 assertEquals(
323 searchEnginesInfo.extensions.length, extensionEntries.length); 323 searchEnginesInfo.extensions.length, extensionEntries.length);
324 }); 324 });
325 }); 325 });
326 326
327 // Tests that the add search engine dialog opens when the corresponding 327 // Tests that the add search engine dialog opens when the corresponding
328 // button is tapped. 328 // button is tapped.
329 test('AddSearchEngineDialog', function() { 329 test('AddSearchEngineDialog', function() {
330 assertFalse(!!page.$$('settings-search-engine-dialog')); 330 assertFalse(!!page.$$('settings-search-engine-dialog'));
331 var addSearchEngineButton = page.$$('#addSearchEngine > a'); 331 var addSearchEngineButton = page.$.addSearchEngine;
332 assertTrue(!!addSearchEngineButton); 332 assertTrue(!!addSearchEngineButton);
333 333
334 MockInteractions.tap(addSearchEngineButton); 334 MockInteractions.tap(addSearchEngineButton);
335 Polymer.dom.flush(); 335 Polymer.dom.flush();
336 assertTrue(!!page.$$('settings-search-engine-dialog')); 336 assertTrue(!!page.$$('settings-search-engine-dialog'));
337 }); 337 });
338 }); 338 });
339 } 339 }
340 340
341 function registerOmniboxExtensionEntryTests() { 341 function registerOmniboxExtensionEntryTests() {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 383
384 return { 384 return {
385 registerTests: function() { 385 registerTests: function() {
386 registerDialogTests(); 386 registerDialogTests();
387 registerSearchEngineEntryTests(); 387 registerSearchEngineEntryTests();
388 registerOmniboxExtensionEntryTests(); 388 registerOmniboxExtensionEntryTests();
389 registerPageTests(); 389 registerPageTests();
390 }, 390 },
391 }; 391 };
392 }); 392 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/site_settings/site_list.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698