| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |