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

Side by Side Diff: chrome/browser/ui/webui/downloads_ui_browsertest.js

Issue 23868042: Mark supervised profiles as such immediately when they're created. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/webui/downloads_ui_browsertest.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 GEN('#include "chrome/browser/ui/webui/downloads_ui_browsertest.h"'); 5 GEN('#include "chrome/browser/ui/webui/downloads_ui_browsertest.h"');
6 6
7 /** @const */ var TOTAL_RESULT_COUNT = 25; 7 /** @const */ var TOTAL_RESULT_COUNT = 25;
8 8
9 /** 9 /**
10 * Test C++ fixture for downloads WebUI testing. 10 * Test C++ fixture for downloads WebUI testing.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 * Fixture for Downloads WebUI testing for a supervised user. 164 * Fixture for Downloads WebUI testing for a supervised user.
165 * @extends {BaseDownloadsWebUITest} 165 * @extends {BaseDownloadsWebUITest}
166 * @constructor 166 * @constructor
167 */ 167 */
168 function DownloadsWebUIForSupervisedUsersTest() {} 168 function DownloadsWebUIForSupervisedUsersTest() {}
169 169
170 DownloadsWebUIForSupervisedUsersTest.prototype = { 170 DownloadsWebUIForSupervisedUsersTest.prototype = {
171 __proto__: BaseDownloadsWebUITest.prototype, 171 __proto__: BaseDownloadsWebUITest.prototype,
172 172
173 /** @override */ 173 /** @override */
174 testGenPreamble: function() { 174 typedefCppFixture: 'DownloadsWebUIForSupervisedUsersTest',
175 GEN(' ChangeProfileToSupervised();');
176 },
177 }; 175 };
178 176
179 // Test UI for supervised users, removing entries should be disabled 177 // Test UI for supervised users, removing entries should be disabled
180 // and removal controls should be hidden. 178 // and removal controls should be hidden.
181 TEST_F('DownloadsWebUIForSupervisedUsersTest', 'SupervisedUsers', function() { 179 TEST_F('DownloadsWebUIForSupervisedUsersTest', 'SupervisedUsers', function() {
182 this.testHelper(false, true); 180 this.testHelper(false, true);
183 testDone(); 181 testDone();
184 }); 182 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/downloads_ui_browsertest.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698