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

Unified Diff: chrome/test/data/webui/md_history/md_history_browsertest.js

Issue 1586373002: MD History: Delete button in the toolbar allows deletion of multiple history-items. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patch_to_be_uploaded
Patch Set: Fix supervised user test. Created 4 years, 10 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
« no previous file with comments | « chrome/test/data/webui/md_history/history_supervised_user_test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/md_history/md_history_browsertest.js
diff --git a/chrome/test/data/webui/md_history/md_history_browsertest.js b/chrome/test/data/webui/md_history/md_history_browsertest.js
index 18c3392c2046b9a47f305033d3d3147e83c4b4f9..1c4ea3e5106fc9d6a42bbf92b1e0ab3daa072682 100644
--- a/chrome/test/data/webui/md_history/md_history_browsertest.js
+++ b/chrome/test/data/webui/md_history/md_history_browsertest.js
@@ -10,6 +10,8 @@ var ROOT_PATH = '../../../../../';
GEN_INCLUDE(
[ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']);
+GEN('#include "base/command_line.h"');
+GEN('#include "chrome/test/data/webui/history_ui_browsertest.h"');
function MaterialHistoryBrowserTest() {}
@@ -25,6 +27,7 @@ MaterialHistoryBrowserTest.prototype = {
'history_card_manager_test.js',
'history_card_test.js',
'history_overflow_menu_test.js',
+ 'history_supervised_user_test.js',
'history_toolbar_test.js'
])
};
@@ -48,3 +51,21 @@ TEST_F('MaterialHistoryBrowserTest', 'HistoryOverflowMenuTest', function() {
md_history.history_overflow_menu_test.registerTests();
mocha.run();
});
+
+function MaterialHistoryDeletionDisabledTest() {}
+
+MaterialHistoryDeletionDisabledTest.prototype = {
+ __proto__: MaterialHistoryBrowserTest.prototype,
+
+ typedefCppFixture: 'HistoryUIBrowserTest',
+
+ testGenPreamble: function() {
+ GEN(' SetDeleteAllowed(false);');
+ }
+};
+
+TEST_F('MaterialHistoryDeletionDisabledTest', 'HistorySupervisedUserTest',
+ function() {
+ md_history.history_supervised_user_test.registerTests();
+ mocha.run();
+});
« no previous file with comments | « chrome/test/data/webui/md_history/history_supervised_user_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698