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

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

Issue 2667253002: MD Settings: Change autofill addr/cc add buttons to paper-button (Closed)
Patch Set: Merge branch 'master' into add-button 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/ui/webui/settings/md_settings_localized_strings_provider.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 /** @fileoverview Runs the Polymer Autofill Settings tests. */ 5 /** @fileoverview Runs the Polymer Autofill Settings tests. */
6 6
7 /** @const {string} Path to root from chrome/test/data/webui/settings/. */ 7 /** @const {string} Path to root from chrome/test/data/webui/settings/. */
8 var ROOT_PATH = '../../../../../'; 8 var ROOT_PATH = '../../../../../';
9 9
10 // Polymer BrowserTest fixture. 10 // Polymer BrowserTest fixture.
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 actualSummary += addressPieces[i].textContent.trim(); 427 actualSummary += addressPieces[i].textContent.trim();
428 } 428 }
429 429
430 assertEquals(addressSummary, actualSummary); 430 assertEquals(addressSummary, actualSummary);
431 }); 431 });
432 432
433 test('verifyAddAddressDialog', function() { 433 test('verifyAddAddressDialog', function() {
434 return self.createAddressDialog_( 434 return self.createAddressDialog_(
435 FakeDataMaker.emptyAddressEntry()).then(function(dialog) { 435 FakeDataMaker.emptyAddressEntry()).then(function(dialog) {
436 var title = dialog.$$('.title'); 436 var title = dialog.$$('.title');
437 assertEquals(loadTimeData.getString('addAddress'), title.textContent); 437 assertEquals(loadTimeData.getString('addAddressTitle'),
438 title.textContent);
438 // Shouldn't be possible to save until something is typed in. 439 // Shouldn't be possible to save until something is typed in.
439 assertTrue(dialog.$.saveButton.disabled); 440 assertTrue(dialog.$.saveButton.disabled);
440 }); 441 });
441 }); 442 });
442 443
443 test('verifyEditAddressDialog', function() { 444 test('verifyEditAddressDialog', function() {
444 return self.createAddressDialog_( 445 return self.createAddressDialog_(
445 FakeDataMaker.addressEntry()).then(function(dialog) { 446 FakeDataMaker.addressEntry()).then(function(dialog) {
446 var title = dialog.$$('.title'); 447 var title = dialog.$$('.title');
447 assertEquals( 448 assertEquals(
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 assertEquals(city, cols[0].value); 844 assertEquals(city, cols[0].value);
844 assertEquals(state, cols[1].value); 845 assertEquals(state, cols[1].value);
845 assertEquals(zip, cols[2].value); 846 assertEquals(zip, cols[2].value);
846 }); 847 });
847 }); 848 });
848 }); 849 });
849 }); 850 });
850 851
851 mocha.run(); 852 mocha.run();
852 }); 853 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698