| 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 /** | 5 /** |
| 6 * @fileoverview Test suite for the Material Design history page. | 6 * @fileoverview Test suite for the Material Design history page. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 var ROOT_PATH = '../../../../../'; | 9 var ROOT_PATH = '../../../../../'; |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 commandLineSwitches: [{switchName: 'enable-features', | 23 commandLineSwitches: [{switchName: 'enable-features', |
| 24 switchValue: 'MaterialDesignHistory'}], | 24 switchValue: 'MaterialDesignHistory'}], |
| 25 | 25 |
| 26 /** @override */ | 26 /** @override */ |
| 27 runAccessibilityChecks: false, | 27 runAccessibilityChecks: false, |
| 28 | 28 |
| 29 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ | 29 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
| 30 'test_util.js', | 30 'test_util.js', |
| 31 'browser_service_test.js', | 31 'browser_service_test.js', |
| 32 'history_drawer_test.js', |
| 32 'history_grouped_list_test.js', | 33 'history_grouped_list_test.js', |
| 33 'history_item_test.js', | 34 'history_item_test.js', |
| 34 'history_list_test.js', | 35 'history_list_test.js', |
| 35 'history_overflow_menu_test.js', | 36 'history_overflow_menu_test.js', |
| 36 'history_routing_test.js', | 37 'history_routing_test.js', |
| 37 'history_supervised_user_test.js', | 38 'history_supervised_user_test.js', |
| 38 'history_synced_tabs_test.js', | 39 'history_synced_tabs_test.js', |
| 39 'history_toolbar_test.js' | 40 'history_toolbar_test.js' |
| 40 ]), | 41 ]), |
| 41 | 42 |
| 42 /** @override */ | 43 /** @override */ |
| 43 setUp: function() { | 44 setUp: function() { |
| 44 PolymerTest.prototype.setUp.call(this); | 45 PolymerTest.prototype.setUp.call(this); |
| 45 | 46 |
| 46 suiteSetup(function() { | 47 suiteSetup(function() { |
| 47 // Wait for the top-level app element to be upgraded. | 48 // Wait for the top-level app element to be upgraded. |
| 48 return waitForUpgrade($('history-app')).then(function() { | 49 return waitForUpgrade($('history-app')).then(function() { |
| 49 $('history-app').queryState_.queryingDisabled = true; | 50 $('history-app').queryState_.queryingDisabled = true; |
| 50 }); | 51 }); |
| 51 }); | 52 }); |
| 52 }, | 53 }, |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 TEST_F('MaterialHistoryBrowserTest', 'BrowserServiceTest', function() { | 56 TEST_F('MaterialHistoryBrowserTest', 'BrowserServiceTest', function() { |
| 56 md_history.browser_service_test.registerTests(); | 57 md_history.browser_service_test.registerTests(); |
| 57 mocha.run(); | 58 mocha.run(); |
| 58 }); | 59 }); |
| 59 | 60 |
| 61 TEST_F('MaterialHistoryBrowserTest', 'DrawerTest', function() { |
| 62 md_history.history_drawer_test.registerTests(); |
| 63 mocha.run(); |
| 64 }); |
| 65 |
| 60 TEST_F('MaterialHistoryBrowserTest', 'HistoryGroupedListTest', function() { | 66 TEST_F('MaterialHistoryBrowserTest', 'HistoryGroupedListTest', function() { |
| 61 md_history.history_grouped_list_test.registerTests(); | 67 md_history.history_grouped_list_test.registerTests(); |
| 62 mocha.run(); | 68 mocha.run(); |
| 63 }); | 69 }); |
| 64 | 70 |
| 65 TEST_F('MaterialHistoryBrowserTest', 'HistoryItemTest', function() { | 71 TEST_F('MaterialHistoryBrowserTest', 'HistoryItemTest', function() { |
| 66 md_history.history_item_test.registerTests(); | 72 md_history.history_item_test.registerTests(); |
| 67 mocha.run(); | 73 mocha.run(); |
| 68 }); | 74 }); |
| 69 | 75 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 return waitForUpgrade($('history-app')); | 141 return waitForUpgrade($('history-app')); |
| 136 }); | 142 }); |
| 137 }, | 143 }, |
| 138 }; | 144 }; |
| 139 | 145 |
| 140 TEST_F('MaterialHistoryWithQueryParamTest', 'RoutingTestWithQueryParam', | 146 TEST_F('MaterialHistoryWithQueryParamTest', 'RoutingTestWithQueryParam', |
| 141 function() { | 147 function() { |
| 142 md_history.history_routing_test_with_query_param.registerTests(); | 148 md_history.history_routing_test_with_query_param.registerTests(); |
| 143 mocha.run(); | 149 mocha.run(); |
| 144 }); | 150 }); |
| OLD | NEW |