Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: chrome/test/data/webui/md_bookmarks/md_bookmarks_browsertest.js

Issue 2912893002: MD Bookmarks: Support policies for disabling bookmark editing (Closed)
Patch Set: canEdit -> globalCanEdit Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698