| 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 15 matching lines...) Expand all Loading... |
| 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_grouped_list_test.js', | 32 'history_grouped_list_test.js', |
| 33 'history_item_test.js', | 33 'history_item_test.js', |
| 34 'history_list_test.js', | 34 'history_list_test.js', |
| 35 'history_overflow_menu_test.js', | 35 'history_overflow_menu_test.js', |
| 36 'history_routing_test.js', |
| 36 'history_supervised_user_test.js', | 37 'history_supervised_user_test.js', |
| 37 'history_synced_tabs_test.js', | 38 'history_synced_tabs_test.js', |
| 38 'history_toolbar_test.js' | 39 'history_toolbar_test.js' |
| 39 ]), | 40 ]), |
| 40 | 41 |
| 41 /** @override */ | 42 /** @override */ |
| 42 setUp: function() { | 43 setUp: function() { |
| 43 PolymerTest.prototype.setUp.call(this); | 44 PolymerTest.prototype.setUp.call(this); |
| 44 | 45 |
| 45 suiteSetup(function() { | 46 suiteSetup(function() { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 74 TEST_F('MaterialHistoryBrowserTest', 'HistoryToolbarTest', function() { | 75 TEST_F('MaterialHistoryBrowserTest', 'HistoryToolbarTest', function() { |
| 75 md_history.history_toolbar_test.registerTests(); | 76 md_history.history_toolbar_test.registerTests(); |
| 76 mocha.run(); | 77 mocha.run(); |
| 77 }); | 78 }); |
| 78 | 79 |
| 79 TEST_F('MaterialHistoryBrowserTest', 'HistoryOverflowMenuTest', function() { | 80 TEST_F('MaterialHistoryBrowserTest', 'HistoryOverflowMenuTest', function() { |
| 80 md_history.history_overflow_menu_test.registerTests(); | 81 md_history.history_overflow_menu_test.registerTests(); |
| 81 mocha.run(); | 82 mocha.run(); |
| 82 }); | 83 }); |
| 83 | 84 |
| 85 TEST_F('MaterialHistoryBrowserTest', 'RoutingTest', function() { |
| 86 md_history.history_routing_test.registerTests(); |
| 87 mocha.run(); |
| 88 }); |
| 89 |
| 84 TEST_F('MaterialHistoryBrowserTest', 'SyncedTabsTest', function() { | 90 TEST_F('MaterialHistoryBrowserTest', 'SyncedTabsTest', function() { |
| 85 md_history.history_synced_tabs_test.registerTests(); | 91 md_history.history_synced_tabs_test.registerTests(); |
| 86 mocha.run(); | 92 mocha.run(); |
| 87 }); | 93 }); |
| 88 | 94 |
| 89 function MaterialHistoryDeletionDisabledTest() {} | 95 function MaterialHistoryDeletionDisabledTest() {} |
| 90 | 96 |
| 91 MaterialHistoryDeletionDisabledTest.prototype = { | 97 MaterialHistoryDeletionDisabledTest.prototype = { |
| 92 __proto__: MaterialHistoryBrowserTest.prototype, | 98 __proto__: MaterialHistoryBrowserTest.prototype, |
| 93 | 99 |
| 94 typedefCppFixture: 'HistoryUIBrowserTest', | 100 typedefCppFixture: 'HistoryUIBrowserTest', |
| 95 | 101 |
| 96 testGenPreamble: function() { | 102 testGenPreamble: function() { |
| 97 GEN(' SetDeleteAllowed(false);'); | 103 GEN(' SetDeleteAllowed(false);'); |
| 98 } | 104 } |
| 99 }; | 105 }; |
| 100 | 106 |
| 101 TEST_F('MaterialHistoryDeletionDisabledTest', 'HistorySupervisedUserTest', | 107 TEST_F('MaterialHistoryDeletionDisabledTest', 'HistorySupervisedUserTest', |
| 102 function() { | 108 function() { |
| 103 md_history.history_supervised_user_test.registerTests(); | 109 md_history.history_supervised_user_test.registerTests(); |
| 104 mocha.run(); | 110 mocha.run(); |
| 105 }); | 111 }); |
| OLD | NEW |