| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |