diff options
Diffstat (limited to 'chrome/browser/ui/webui/downloads_ui_supervised_browsertest.js')
-rw-r--r-- | chrome/browser/ui/webui/downloads_ui_supervised_browsertest.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome/browser/ui/webui/downloads_ui_supervised_browsertest.js b/chrome/browser/ui/webui/downloads_ui_supervised_browsertest.js new file mode 100644 index 0000000..23b70d1 --- /dev/null +++ b/chrome/browser/ui/webui/downloads_ui_supervised_browsertest.js @@ -0,0 +1,27 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +GEN_INCLUDE(['downloads_ui_browsertest_base.js']); +GEN('#include "chrome/browser/ui/webui/downloads_ui_supervised_browsertest.h"'); + +/** + * Fixture for Downloads WebUI testing for a supervised user. + * @extends {BaseDownloadsWebUITest} + * @constructor + */ +function DownloadsWebUIForSupervisedUsersTest() {} + +DownloadsWebUIForSupervisedUsersTest.prototype = { + __proto__: BaseDownloadsWebUITest.prototype, + + /** @override */ + typedefCppFixture: 'DownloadsWebUIForSupervisedUsersTest', +}; + +// Test UI for supervised users, removing entries should be disabled +// and removal controls should be hidden. +TEST_F('DownloadsWebUIForSupervisedUsersTest', 'SupervisedUsers', function() { + this.testHelper(false, true); + testDone(); +}); |