| Index: chrome/browser/ui/webui/downloads_ui_browsertest_base.js
|
| diff --git a/chrome/browser/ui/webui/downloads_ui_browsertest.js b/chrome/browser/ui/webui/downloads_ui_browsertest_base.js
|
| similarity index 72%
|
| copy from chrome/browser/ui/webui/downloads_ui_browsertest.js
|
| copy to chrome/browser/ui/webui/downloads_ui_browsertest_base.js
|
| index 1cd786a13bc26139bb8d223454e85ed99c0d0030..3cc0d272eeb3c684363631c665258566e7a4643f 100644
|
| --- a/chrome/browser/ui/webui/downloads_ui_browsertest.js
|
| +++ b/chrome/browser/ui/webui/downloads_ui_browsertest_base.js
|
| @@ -1,9 +1,7 @@
|
| -// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// 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 "chrome/browser/ui/webui/downloads_ui_browsertest.h"');
|
| -
|
| /** @const */ var TOTAL_RESULT_COUNT = 25;
|
|
|
| /**
|
| @@ -128,56 +126,3 @@ BaseDownloadsWebUITest.prototype = {
|
| expectEquals(allowDelete ? 0 : TOTAL_RESULT_COUNT, downloads.size());
|
| },
|
| };
|
| -
|
| -// Test UI when removing entries is allowed.
|
| -TEST_F('BaseDownloadsWebUITest', 'DeleteAllowed', function() {
|
| - this.testHelper(true, false);
|
| - // TODO(pamg): Mock out the back-end calls, so we can also test removing a
|
| - // single item.
|
| - testDone();
|
| -});
|
| -
|
| -/**
|
| - * Fixture for Downloads WebUI testing when deletions are prohibited.
|
| - * @extends {BaseDownloadsWebUITest}
|
| - * @constructor
|
| - */
|
| -function DownloadsWebUIDeleteProhibitedTest() {}
|
| -
|
| -DownloadsWebUIDeleteProhibitedTest.prototype = {
|
| - __proto__: BaseDownloadsWebUITest.prototype,
|
| -
|
| - /** @override */
|
| - testGenPreamble: function() {
|
| - GEN(' SetDeleteAllowed(false);');
|
| - },
|
| -};
|
| -
|
| -// Test UI when removing entries is prohibited.
|
| -TEST_F('DownloadsWebUIDeleteProhibitedTest', 'DeleteProhibited', function() {
|
| - this.testHelper(false, false);
|
| - // TODO(pamg): Mock out the back-end calls, so we can also test removing a
|
| - // single item.
|
| - testDone();
|
| -});
|
| -
|
| -/**
|
| - * 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();
|
| -});
|
|
|