| 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 Tests for the Material Design user manager page. */ | 5 /** @fileoverview Tests for the Material Design user manager page. */ |
| 6 | 6 |
| 7 /** @const {string} Path to root from chrome/test/data/webui/md_user_manager/ */ | 7 /** @const {string} Path to root from chrome/test/data/webui/md_user_manager/ */ |
| 8 var ROOT_PATH = '../../../../../'; | 8 var ROOT_PATH = '../../../../../'; |
| 9 | 9 |
| 10 // Polymer BrowserTest fixture. | 10 // Polymer BrowserTest fixture. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 __proto__: PolymerTest.prototype, | 21 __proto__: PolymerTest.prototype, |
| 22 | 22 |
| 23 /** @override */ | 23 /** @override */ |
| 24 browsePreload: 'chrome://md-user-manager/', | 24 browsePreload: 'chrome://md-user-manager/', |
| 25 | 25 |
| 26 /** @override */ | 26 /** @override */ |
| 27 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ | 27 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
| 28 '../settings/test_browser_proxy.js', | 28 '../settings/test_browser_proxy.js', |
| 29 'control_bar_tests.js', | 29 'control_bar_tests.js', |
| 30 'create_profile_tests.js', | 30 'create_profile_tests.js', |
| 31 'import_supervised_user_tests.js', |
| 31 'test_profile_browser_proxy.js', | 32 'test_profile_browser_proxy.js', |
| 32 'user_manager_pages_tests.js', | 33 'user_manager_pages_tests.js', |
| 33 ]), | 34 ]), |
| 34 | 35 |
| 35 /** @override */ | 36 /** @override */ |
| 36 runAccessibilityChecks: false, | 37 runAccessibilityChecks: false, |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 TEST_F('UserManagerBrowserTest', 'UserManagerTest', function() { | 40 TEST_F('UserManagerBrowserTest', 'UserManagerTest', function() { |
| 40 // Disable 'pod-row' so it won't handle click events after we clear the body. | 41 // Disable 'pod-row' so it won't handle click events after we clear the body. |
| 41 $('pod-row').disabled = true; | 42 $('pod-row').disabled = true; |
| 42 | 43 |
| 43 user_manager.control_bar_tests.registerTests(); | 44 user_manager.control_bar_tests.registerTests(); |
| 44 user_manager.create_profile_tests.registerTests(); | 45 user_manager.create_profile_tests.registerTests(); |
| 46 user_manager.import_supervised_user_tests.registerTests(); |
| 45 user_manager.user_manager_pages_tests.registerTests(); | 47 user_manager.user_manager_pages_tests.registerTests(); |
| 46 mocha.run(); | 48 mocha.run(); |
| 47 }); | 49 }); |
| OLD | NEW |