| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 bookmarks page. | 6 * @fileoverview Test suite for the Material Design bookmarks page. |
| 7 */ | 7 */ |
| 8 var ROOT_PATH = '../../../../../'; | 8 var ROOT_PATH = '../../../../../'; |
| 9 | 9 |
| 10 GEN_INCLUDE( | 10 GEN_INCLUDE( |
| 11 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']); | 11 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']); |
| 12 GEN('#include "base/command_line.h"'); | 12 GEN('#include "base/command_line.h"'); |
| 13 | 13 |
| 14 function MaterialBookmarksBrowserTest() {} | 14 function MaterialBookmarksBrowserTest() {} |
| 15 | 15 |
| 16 MaterialBookmarksBrowserTest.prototype = { | 16 MaterialBookmarksBrowserTest.prototype = { |
| 17 __proto__: PolymerTest.prototype, | 17 __proto__: PolymerTest.prototype, |
| 18 | 18 |
| 19 browsePreload: 'chrome://bookmarks', | 19 browsePreload: 'chrome://bookmarks', |
| 20 | 20 |
| 21 commandLineSwitches: [{switchName: 'enable-features', | 21 commandLineSwitches: |
| 22 switchValue: 'MaterialDesignBookmarks'}], | 22 [{switchName: 'enable-features', switchValue: 'MaterialDesignBookmarks'}], |
| 23 | 23 |
| 24 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ | 24 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
| 25 'test_store.js', |
| 25 'test_util.js', | 26 'test_util.js', |
| 26 ]), | 27 ]), |
| 27 }; | 28 }; |
| 28 | 29 |
| 29 function MaterialBookmarksStoreTest() {} | 30 function MaterialBookmarksStoreClientTest() {} |
| 30 | 31 |
| 31 MaterialBookmarksStoreTest.prototype = { | 32 MaterialBookmarksStoreClientTest.prototype = { |
| 32 __proto__: MaterialBookmarksBrowserTest.prototype, | 33 __proto__: MaterialBookmarksBrowserTest.prototype, |
| 33 | 34 |
| 34 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ | 35 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ |
| 35 'store_test.js', | 36 'store_client_test.js', |
| 36 ]), | 37 ]), |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 TEST_F('MaterialBookmarksStoreTest', 'All', function() { | 40 TEST_F('MaterialBookmarksStoreClientTest', 'All', function() { |
| 40 mocha.run(); | 41 mocha.run(); |
| 41 }); | 42 }); |
| 42 | 43 |
| 44 function MaterialBookmarksReducersTest() {} |
| 45 |
| 46 MaterialBookmarksReducersTest.prototype = { |
| 47 __proto__: MaterialBookmarksBrowserTest.prototype, |
| 48 |
| 49 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ |
| 50 'reducers_test.js', |
| 51 ]), |
| 52 }; |
| 53 |
| 54 TEST_F('MaterialBookmarksReducersTest', 'All', function() { |
| 55 mocha.run(); |
| 56 }); |
| 57 |
| 43 function MaterialBookmarksSidebarTest() {} | 58 function MaterialBookmarksSidebarTest() {} |
| 44 | 59 |
| 45 MaterialBookmarksSidebarTest.prototype = { | 60 MaterialBookmarksSidebarTest.prototype = { |
| 46 __proto__: MaterialBookmarksBrowserTest.prototype, | 61 __proto__: MaterialBookmarksBrowserTest.prototype, |
| 47 | 62 |
| 48 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ | 63 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ |
| 49 'sidebar_test.js', | 64 'sidebar_test.js', |
| 50 ]), | 65 ]), |
| 51 }; | 66 }; |
| 52 | 67 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 74 __proto__: MaterialBookmarksBrowserTest.prototype, | 89 __proto__: MaterialBookmarksBrowserTest.prototype, |
| 75 | 90 |
| 76 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ | 91 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ |
| 77 'list_test.js', | 92 'list_test.js', |
| 78 ]), | 93 ]), |
| 79 }; | 94 }; |
| 80 | 95 |
| 81 TEST_F('MaterialBookmarksListTest', 'All', function() { | 96 TEST_F('MaterialBookmarksListTest', 'All', function() { |
| 82 mocha.run(); | 97 mocha.run(); |
| 83 }); | 98 }); |
| OLD | NEW |