| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 MaterialHistoryItemTest.prototype = { | 105 MaterialHistoryItemTest.prototype = { |
| 106 __proto__: MaterialHistoryBrowserTest.prototype, | 106 __proto__: MaterialHistoryBrowserTest.prototype, |
| 107 | 107 |
| 108 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ | 108 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ |
| 109 'history_item_test.js', | 109 'history_item_test.js', |
| 110 ]), | 110 ]), |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 TEST_F('MaterialHistoryItemTest', 'All', function() { | 113 TEST_F('MaterialHistoryItemTest', 'All', function() { |
| 114 md_history.history_item_test.registerTests(); | |
| 115 mocha.run(); | 114 mocha.run(); |
| 116 }); | 115 }); |
| 117 | 116 |
| 118 function MaterialHistoryListTest() {} | 117 function MaterialHistoryListTest() {} |
| 119 | 118 |
| 120 MaterialHistoryListTest.prototype = { | 119 MaterialHistoryListTest.prototype = { |
| 121 __proto__: MaterialHistoryBrowserTest.prototype, | 120 __proto__: MaterialHistoryBrowserTest.prototype, |
| 122 | 121 |
| 123 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ | 122 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ |
| 124 'history_list_test.js', | 123 'history_list_test.js', |
| 125 ]), | 124 ]), |
| 126 }; | 125 }; |
| 127 | 126 |
| 128 TEST_F('MaterialHistoryListTest', 'All', function() { | 127 TEST_F('MaterialHistoryListTest', 'All', function() { |
| 129 md_history.history_list_test.registerTests(); | |
| 130 mocha.run(); | 128 mocha.run(); |
| 131 }); | 129 }); |
| 132 | 130 |
| 133 function MaterialHistoryMetricsTest() {} | 131 function MaterialHistoryMetricsTest() {} |
| 134 | 132 |
| 135 MaterialHistoryMetricsTest.prototype = { | 133 MaterialHistoryMetricsTest.prototype = { |
| 136 __proto__: MaterialHistoryBrowserTest.prototype, | 134 __proto__: MaterialHistoryBrowserTest.prototype, |
| 137 | 135 |
| 138 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ | 136 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ |
| 139 'history_metrics_test.js', | 137 'history_metrics_test.js', |
| 140 ]), | 138 ]), |
| 141 }; | 139 }; |
| 142 | 140 |
| 143 TEST_F('MaterialHistoryMetricsTest', 'All', function() { | 141 TEST_F('MaterialHistoryMetricsTest', 'All', function() { |
| 144 md_history.history_metrics_test.registerTests(); | |
| 145 mocha.run(); | 142 mocha.run(); |
| 146 }); | 143 }); |
| 147 | 144 |
| 148 function MaterialHistoryOverflowMenuTest() {} | 145 function MaterialHistoryOverflowMenuTest() {} |
| 149 | 146 |
| 150 MaterialHistoryOverflowMenuTest.prototype = { | 147 MaterialHistoryOverflowMenuTest.prototype = { |
| 151 __proto__: MaterialHistoryBrowserTest.prototype, | 148 __proto__: MaterialHistoryBrowserTest.prototype, |
| 152 | 149 |
| 153 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ | 150 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ |
| 154 'history_overflow_menu_test.js', | 151 'history_overflow_menu_test.js', |
| 155 ]), | 152 ]), |
| 156 }; | 153 }; |
| 157 | 154 |
| 158 TEST_F('MaterialHistoryOverflowMenuTest', 'All', function() { | 155 TEST_F('MaterialHistoryOverflowMenuTest', 'All', function() { |
| 159 md_history.history_overflow_menu_test.registerTests(); | |
| 160 mocha.run(); | 156 mocha.run(); |
| 161 }); | 157 }); |
| 162 | 158 |
| 163 function MaterialHistoryRoutingTest() {} | 159 function MaterialHistoryRoutingTest() {} |
| 164 | 160 |
| 165 MaterialHistoryRoutingTest.prototype = { | 161 MaterialHistoryRoutingTest.prototype = { |
| 166 __proto__: MaterialHistoryBrowserTest.prototype, | 162 __proto__: MaterialHistoryBrowserTest.prototype, |
| 167 | 163 |
| 168 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ | 164 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ |
| 169 'history_routing_test.js', | 165 'history_routing_test.js', |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 MaterialHistorySyncedTabsTest.prototype = { | 209 MaterialHistorySyncedTabsTest.prototype = { |
| 214 __proto__: MaterialHistoryBrowserTest.prototype, | 210 __proto__: MaterialHistoryBrowserTest.prototype, |
| 215 | 211 |
| 216 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ | 212 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ |
| 217 'history_synced_tabs_test.js', | 213 'history_synced_tabs_test.js', |
| 218 ]), | 214 ]), |
| 219 }; | 215 }; |
| 220 | 216 |
| 221 // Fails on Mac, http://crbug.com/640862 | 217 // Fails on Mac, http://crbug.com/640862 |
| 222 TEST_F('MaterialHistorySyncedTabsTest', 'DISABLED_All', function() { | 218 TEST_F('MaterialHistorySyncedTabsTest', 'DISABLED_All', function() { |
| 223 md_history.history_synced_tabs_test.registerTests(); | |
| 224 mocha.run(); | 219 mocha.run(); |
| 225 }); | 220 }); |
| 226 | 221 |
| 227 function MaterialHistorySupervisedUserTest() {} | 222 function MaterialHistorySupervisedUserTest() {} |
| 228 | 223 |
| 229 MaterialHistorySupervisedUserTest.prototype = { | 224 MaterialHistorySupervisedUserTest.prototype = { |
| 230 __proto__: MaterialHistoryBrowserTest.prototype, | 225 __proto__: MaterialHistoryBrowserTest.prototype, |
| 231 | 226 |
| 232 typedefCppFixture: 'HistoryUIBrowserTest', | 227 typedefCppFixture: 'HistoryUIBrowserTest', |
| 233 | 228 |
| 234 testGenPreamble: function() { | 229 testGenPreamble: function() { |
| 235 GEN(' SetDeleteAllowed(false);'); | 230 GEN(' SetDeleteAllowed(false);'); |
| 236 }, | 231 }, |
| 237 | 232 |
| 238 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ | 233 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ |
| 239 'history_supervised_user_test.js', | 234 'history_supervised_user_test.js', |
| 240 ]), | 235 ]), |
| 241 }; | 236 }; |
| 242 | 237 |
| 243 TEST_F('MaterialHistorySupervisedUserTest', 'All', function() { | 238 TEST_F('MaterialHistorySupervisedUserTest', 'All', function() { |
| 244 md_history.history_supervised_user_test.registerTests(); | |
| 245 mocha.run(); | 239 mocha.run(); |
| 246 }); | 240 }); |
| 247 | 241 |
| 248 function MaterialHistoryToolbarTest() {} | 242 function MaterialHistoryToolbarTest() {} |
| 249 | 243 |
| 250 MaterialHistoryToolbarTest.prototype = { | 244 MaterialHistoryToolbarTest.prototype = { |
| 251 __proto__: MaterialHistoryBrowserTest.prototype, | 245 __proto__: MaterialHistoryBrowserTest.prototype, |
| 252 | 246 |
| 253 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ | 247 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ |
| 254 'history_toolbar_test.js', | 248 'history_toolbar_test.js', |
| 255 ]), | 249 ]), |
| 256 }; | 250 }; |
| 257 | 251 |
| 258 TEST_F('MaterialHistoryToolbarTest', 'Basic', function() { | 252 TEST_F('MaterialHistoryToolbarTest', 'Basic', function() { |
| 259 md_history.history_toolbar_test.registerTests(); | 253 md_history.history_toolbar_test.registerTests(); |
| 260 mocha.run(); | 254 mocha.run(); |
| 261 }); | 255 }); |
| 262 | 256 |
| 263 TEST_F('MaterialHistoryToolbarTest', 'Focus', function() { | 257 TEST_F('MaterialHistoryToolbarTest', 'Focus', function() { |
| 264 md_history.history_toolbar_focus_test.registerTests(); | 258 md_history.history_toolbar_focus_test.registerTests(); |
| 265 mocha.run(); | 259 mocha.run(); |
| 266 }); | 260 }); |
| OLD | NEW |