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

Unified Diff: chrome/browser/ui/webui/downloads_ui_browsertest_base.js

Issue 355233002: Fix build when ENABLE_MANAGED_USERS is not defined (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include missing browsertest .js file in chrome_tests.gypi Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
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 69%
copy from chrome/browser/ui/webui/downloads_ui_browsertest.js
copy to chrome/browser/ui/webui/downloads_ui_browsertest_base.js
index 4eb5bc1dcbb31e88a295546e35ab19b58bfbda5b..c6d0db0d46e6d901d157c740c13d843d10e4c019 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;
/**
@@ -134,64 +132,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();
-});
-
-// Test that clicking <a href=#> doesn't actually go to #.
-TEST_F('BaseDownloadsWebUITest', 'PoundLinkClicksDontChangeUrl', function() {
- assertEquals(this.browsePreload, document.location.href);
- document.querySelector('.clear-all-link').click();
- assertEquals(this.browsePreload, document.location.href);
- 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();
-});
« no previous file with comments | « chrome/browser/ui/webui/downloads_ui_browsertest.js ('k') | chrome/browser/ui/webui/downloads_ui_supervised_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698