| 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 |
| 11 GEN_INCLUDE( | 11 GEN_INCLUDE( |
| 12 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']); | 12 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']); |
| 13 GEN('#include "base/command_line.h"'); | 13 GEN('#include "base/command_line.h"'); |
| 14 GEN('#include "chrome/test/data/webui/history_ui_browsertest.h"'); | 14 GEN('#include "chrome/test/data/webui/history_ui_browsertest.h"'); |
| 15 | 15 |
| 16 function MaterialHistoryBrowserTest() {} | 16 function MaterialHistoryBrowserTest() {} |
| 17 | 17 |
| 18 MaterialHistoryBrowserTest.prototype = { | 18 MaterialHistoryBrowserTest.prototype = { |
| 19 __proto__: PolymerTest.prototype, | 19 __proto__: PolymerTest.prototype, |
| 20 | 20 |
| 21 browsePreload: 'chrome://history', | 21 browsePreload: 'chrome://history', |
| 22 | 22 |
| 23 commandLineSwitches: [{switchName: 'enable-features', | |
| 24 switchValue: 'MaterialDesignHistory'}], | |
| 25 | |
| 26 /** @override */ | 23 /** @override */ |
| 27 runAccessibilityChecks: false, | 24 runAccessibilityChecks: false, |
| 28 | 25 |
| 29 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ | 26 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
| 30 'test_util.js', | 27 'test_util.js', |
| 31 ]), | 28 ]), |
| 32 | 29 |
| 33 /** @override */ | 30 /** @override */ |
| 34 setUp: function() { | 31 setUp: function() { |
| 35 PolymerTest.prototype.setUp.call(this); | 32 PolymerTest.prototype.setUp.call(this); |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 __proto__: MaterialHistoryBrowserTest.prototype, | 233 __proto__: MaterialHistoryBrowserTest.prototype, |
| 237 | 234 |
| 238 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ | 235 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ |
| 239 'history_toolbar_test.js', | 236 'history_toolbar_test.js', |
| 240 ]), | 237 ]), |
| 241 }; | 238 }; |
| 242 | 239 |
| 243 TEST_F('MaterialHistoryToolbarTest', 'All', function() { | 240 TEST_F('MaterialHistoryToolbarTest', 'All', function() { |
| 244 mocha.run(); | 241 mocha.run(); |
| 245 }); | 242 }); |
| OLD | NEW |