Chromium Code Reviews| 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 1403e74e186e4b236be2319243b7ca146fd50c21..744a602d11ce39bec478eab6228e285573bcc8b9 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,7 +27,8 @@ MaterialHistoryBrowserTest.prototype = { |
| 'history_card_manager_test.js', |
| 'history_toolbar_test.js', |
| 'history_card_test.js', |
| - 'history_overflow_menu_test.js' |
| + 'history_overflow_menu_test.js', |
| + 'history_supervised_user_test.js' |
| ]) |
| }; |
| @@ -47,4 +50,23 @@ TEST_F('MaterialHistoryBrowserTest', 'HistoryToolbarTest', function() { |
| 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() { |
| + // MaterialHistoryBrowserTest.prototype.testGenPreamble.call(this); |
|
tsergeant
2016/01/25 01:43:15
Remove this.
hsampson
2016/01/25 04:15:42
Done.
|
| + GEN(' SetDeleteAllowed(false);'); |
| + } |
| +}; |
| + |
| +TEST_F('MaterialHistoryDeletionDisabledTest', 'HistorySupervisedUserTest', |
| + function() { |
| + md_history.history_supervised_user_test.registerTests(); |
| + mocha.run(); |
| +}); |