| 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( |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 mocha.run(); | 186 mocha.run(); |
| 187 }); | 187 }); |
| 188 | 188 |
| 189 function MaterialBookmarksPolicyTest() {} | 189 function MaterialBookmarksPolicyTest() {} |
| 190 | 190 |
| 191 MaterialBookmarksPolicyTest.prototype = { | 191 MaterialBookmarksPolicyTest.prototype = { |
| 192 __proto__: MaterialBookmarksBrowserTest.prototype, | 192 __proto__: MaterialBookmarksBrowserTest.prototype, |
| 193 | 193 |
| 194 testGenPreamble: function() { | 194 testGenPreamble: function() { |
| 195 GEN('SetIncognitoAvailability(IncognitoModePrefs::DISABLED);'); | 195 GEN('SetIncognitoAvailability(IncognitoModePrefs::DISABLED);'); |
| 196 GEN('SetCanEditBookmarks(false);'); |
| 196 }, | 197 }, |
| 197 | 198 |
| 198 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ | 199 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ |
| 199 'policy_test.js', | 200 'policy_test.js', |
| 200 ]), | 201 ]), |
| 201 }; | 202 }; |
| 202 | 203 |
| 203 TEST_F('MaterialBookmarksPolicyTest', 'All', function() { | 204 TEST_F('MaterialBookmarksPolicyTest', 'All', function() { |
| 204 mocha.run(); | 205 mocha.run(); |
| 205 }); | 206 }); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 __proto__: MaterialBookmarksBrowserTest.prototype, | 239 __proto__: MaterialBookmarksBrowserTest.prototype, |
| 239 | 240 |
| 240 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ | 241 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ |
| 241 'util_test.js', | 242 'util_test.js', |
| 242 ]), | 243 ]), |
| 243 }; | 244 }; |
| 244 | 245 |
| 245 TEST_F('MaterialBookmarksUtilTest', 'All', function() { | 246 TEST_F('MaterialBookmarksUtilTest', 'All', function() { |
| 246 mocha.run(); | 247 mocha.run(); |
| 247 }); | 248 }); |
| OLD | NEW |