Chromium Code Reviews| 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 Passwords and Forms tests. */ | 5 /** @fileoverview Runs the Polymer Passwords and Forms 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 212 /** | 212 /** |
| 213 * @constructor | 213 * @constructor |
| 214 * @extends {PolymerTest} | 214 * @extends {PolymerTest} |
| 215 */ | 215 */ |
| 216 function PasswordsAndFormsBrowserTest() {} | 216 function PasswordsAndFormsBrowserTest() {} |
| 217 | 217 |
| 218 PasswordsAndFormsBrowserTest.prototype = { | 218 PasswordsAndFormsBrowserTest.prototype = { |
| 219 __proto__: PolymerTest.prototype, | 219 __proto__: PolymerTest.prototype, |
| 220 | 220 |
| 221 /** @override */ | 221 /** @override */ |
| 222 browsePreload: 'chrome://md-settings/passwords_and_forms_page/' + | 222 browsePreload: 'chrome://md-settings', |
|
Dan Beam
2016/06/04 01:00:26
wait, this seems like a step in the wrong directio
hcarmona
2016/06/04 01:19:10
Fixed the other test, forgot to update this URL. F
| |
| 223 'passwords_and_forms_page.html', | |
| 224 | 223 |
| 225 /** @override */ | 224 /** @override */ |
| 226 extraLibraries: PolymerTest.getLibraries(ROOT_PATH), | 225 extraLibraries: PolymerTest.getLibraries(ROOT_PATH), |
| 227 | 226 |
| 228 /** @override */ | 227 /** @override */ |
| 229 setUp: function() { | 228 setUp: function() { |
| 230 PolymerTest.prototype.setUp.call(this); | 229 PolymerTest.prototype.setUp.call(this); |
| 231 | 230 |
| 232 // Test is run on an individual element that won't have a page language. | 231 // Test is run on an individual element that won't have a page language. |
| 233 this.accessibilityAuditConfig.auditRulesToIgnore.push('humanLangMissing'); | 232 this.accessibilityAuditConfig.auditRulesToIgnore.push('humanLangMissing'); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 369 | 368 |
| 370 // The callback is coming from the manager, so the element shouldn't have | 369 // The callback is coming from the manager, so the element shouldn't have |
| 371 // additional calls to the manager after the base expectations. | 370 // additional calls to the manager after the base expectations. |
| 372 self.passwordManager.assertExpectations(self.basePasswordExpectations()); | 371 self.passwordManager.assertExpectations(self.basePasswordExpectations()); |
| 373 self.autofillManager.assertExpectations(self.baseAutofillExpectations()); | 372 self.autofillManager.assertExpectations(self.baseAutofillExpectations()); |
| 374 }); | 373 }); |
| 375 }); | 374 }); |
| 376 | 375 |
| 377 mocha.run(); | 376 mocha.run(); |
| 378 }); | 377 }); |
| OLD | NEW |