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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 function MaterialHistoryListTest() {} | 100 function MaterialHistoryListTest() {} |
101 | 101 |
102 MaterialHistoryListTest.prototype = { | 102 MaterialHistoryListTest.prototype = { |
103 __proto__: MaterialHistoryBrowserTest.prototype, | 103 __proto__: MaterialHistoryBrowserTest.prototype, |
104 | 104 |
105 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ | 105 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ |
106 'history_list_test.js', | 106 'history_list_test.js', |
107 ]), | 107 ]), |
108 }; | 108 }; |
109 | 109 |
110 TEST_F('MaterialHistoryListTest', 'All', function() { | 110 // Times out on debug builders and may time out on memory bots because |
| 111 // the History page can take several seconds to load in a Debug build. See |
| 112 // https://crbug.com/669227. |
| 113 GEN('#if defined(MEMORY_SANITIZER) || !defined(NDEBUG)'); |
| 114 GEN('#define MAYBE_All DISABLED_All'); |
| 115 GEN('#else'); |
| 116 GEN('#define MAYBE_All All'); |
| 117 GEN('#endif'); |
| 118 |
| 119 TEST_F('MaterialHistoryListTest', 'MAYBE_All', function() { |
111 mocha.run(); | 120 mocha.run(); |
112 }); | 121 }); |
113 | 122 |
114 function MaterialHistoryMetricsTest() {} | 123 function MaterialHistoryMetricsTest() {} |
115 | 124 |
116 MaterialHistoryMetricsTest.prototype = { | 125 MaterialHistoryMetricsTest.prototype = { |
117 __proto__: MaterialHistoryBrowserTest.prototype, | 126 __proto__: MaterialHistoryBrowserTest.prototype, |
118 | 127 |
119 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ | 128 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ |
120 'history_metrics_test.js', | 129 'history_metrics_test.js', |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 __proto__: MaterialHistoryBrowserTest.prototype, | 236 __proto__: MaterialHistoryBrowserTest.prototype, |
228 | 237 |
229 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ | 238 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ |
230 'history_toolbar_test.js', | 239 'history_toolbar_test.js', |
231 ]), | 240 ]), |
232 }; | 241 }; |
233 | 242 |
234 TEST_F('MaterialHistoryToolbarTest', 'All', function() { | 243 TEST_F('MaterialHistoryToolbarTest', 'All', function() { |
235 mocha.run(); | 244 mocha.run(); |
236 }); | 245 }); |
OLD | NEW |