| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 */ | 163 */ |
| 164 createCreditCardDialog_: function(creditCardItem) { | 164 createCreditCardDialog_: function(creditCardItem) { |
| 165 var section = document.createElement('settings-credit-card-edit-dialog'); | 165 var section = document.createElement('settings-credit-card-edit-dialog'); |
| 166 section.creditCard = creditCardItem; | 166 section.creditCard = creditCardItem; |
| 167 document.body.appendChild(section); | 167 document.body.appendChild(section); |
| 168 Polymer.dom.flush(); | 168 Polymer.dom.flush(); |
| 169 return section; | 169 return section; |
| 170 }, | 170 }, |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 TEST_F('SettingsAutofillSectionBrowserTest', 'CreditCardTests', function() { | 173 // Disabled because of flakiness http://crbug.com/694289 |
| 174 TEST_F('SettingsAutofillSectionBrowserTest', |
| 175 'DISABLED_CreditCardTests', |
| 176 function() { |
| 174 var self = this; | 177 var self = this; |
| 175 | 178 |
| 176 setup(function() { | 179 setup(function() { |
| 177 PolymerTest.clearBody(); | 180 PolymerTest.clearBody(); |
| 178 }); | 181 }); |
| 179 | 182 |
| 180 suite('AutofillSection', function() { | 183 suite('AutofillSection', function() { |
| 181 test('verifyCreditCardCount', function() { | 184 test('verifyCreditCardCount', function() { |
| 182 var section = self.createAutofillSection_([], []); | 185 var section = self.createAutofillSection_([], []); |
| 183 assertTrue(!!section); | 186 assertTrue(!!section); |
| (...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 913 assertEquals(city, cols[0].value); | 916 assertEquals(city, cols[0].value); |
| 914 assertEquals(state, cols[1].value); | 917 assertEquals(state, cols[1].value); |
| 915 assertEquals(zip, cols[2].value); | 918 assertEquals(zip, cols[2].value); |
| 916 }); | 919 }); |
| 917 }); | 920 }); |
| 918 }); | 921 }); |
| 919 }); | 922 }); |
| 920 | 923 |
| 921 mocha.run(); | 924 mocha.run(); |
| 922 }); | 925 }); |
| OLD | NEW |