| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 Password Settings tests. */ | 5 /** @fileoverview Runs the Polymer Password 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 * @private | 171 * @private |
| 172 */ | 172 */ |
| 173 flushPasswordSection_: function(passwordsSection) { | 173 flushPasswordSection_: function(passwordsSection) { |
| 174 passwordsSection.$.passwordList.notifyResize(); | 174 passwordsSection.$.passwordList.notifyResize(); |
| 175 Polymer.dom.flush(); | 175 Polymer.dom.flush(); |
| 176 }, | 176 }, |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 /** | 179 /** |
| 180 * This test will validate that the section is loaded with data. | 180 * This test will validate that the section is loaded with data. |
| 181 * TODO(dbeam/hcarmona): fix these tests. |
| 181 */ | 182 */ |
| 182 TEST_F('SettingsPasswordSectionBrowserTest', 'uiTests', function() { | 183 TEST_F('SettingsPasswordSectionBrowserTest', 'DISABLED_uiTests', function() { |
| 183 var self = this; | 184 var self = this; |
| 184 | 185 |
| 185 suite('PasswordsSection', function() { | 186 suite('PasswordsSection', function() { |
| 186 test('verifyNoSavedPasswords', function() { | 187 test('verifyNoSavedPasswords', function() { |
| 187 assertEquals(self.browsePreload, document.location.href); | 188 assertEquals(self.browsePreload, document.location.href); |
| 188 | 189 |
| 189 var passwordsSection = self.createPasswordsSection_([], []); | 190 var passwordsSection = self.createPasswordsSection_([], []); |
| 190 | 191 |
| 191 self.validatePasswordList( | 192 self.validatePasswordList( |
| 192 self.getIronListChildren_(passwordsSection.$.passwordList), | 193 self.getIronListChildren_(passwordsSection.$.passwordList), |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 assertEquals(item.loginPair.username, event.detail.username); | 477 assertEquals(item.loginPair.username, event.detail.username); |
| 477 done(); | 478 done(); |
| 478 }); | 479 }); |
| 479 | 480 |
| 480 MockInteractions.tap(passwordDialog.$.showPasswordButton); | 481 MockInteractions.tap(passwordDialog.$.showPasswordButton); |
| 481 }); | 482 }); |
| 482 }); | 483 }); |
| 483 | 484 |
| 484 mocha.run(); | 485 mocha.run(); |
| 485 }); | 486 }); |
| OLD | NEW |