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

Unified Diff: chrome/test/data/webui/settings/cr_settings_browsertest.js

Issue 2676643005: MD Settings: Fix reset_page_test.js in Vulcanized mode (Closed)
Patch Set: Un-unwrap Created 3 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
Index: chrome/test/data/webui/settings/cr_settings_browsertest.js
diff --git a/chrome/test/data/webui/settings/cr_settings_browsertest.js b/chrome/test/data/webui/settings/cr_settings_browsertest.js
index c4620f4e9d63b63bf18affff27f8258a06fd5ae1..67872f129a8e8dd435499241e3a344896571dffa 100644
--- a/chrome/test/data/webui/settings/cr_settings_browsertest.js
+++ b/chrome/test/data/webui/settings/cr_settings_browsertest.js
@@ -417,12 +417,38 @@ CrSettingsResetPageTest.prototype = {
extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
'test_browser_proxy.js',
'test_lifetime_browser_proxy.js',
+ 'test_reset_browser_proxy.js',
'reset_page_test.js',
]),
};
TEST_F('CrSettingsResetPageTest', 'ResetPage', function() {
- settings_reset_page.registerTests();
+ mocha.run();
+});
+
+/**
+ * Test fixture for
+ * chrome/browser/resources/settings/reset_page/reset_profile_banner.html
+ * @constructor
+ * @extends {CrSettingsBrowserTest}
+ */
+function CrSettingsResetProfileBannerTest() {}
+
+CrSettingsResetProfileBannerTest.prototype = {
+ __proto__: CrSettingsBrowserTest.prototype,
+
+ /** @override */
+ browsePreload: 'chrome://md-settings/reset_page/reset_profile_banner.html',
+
+ /** @override */
+ extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
+ 'test_browser_proxy.js',
+ 'test_reset_browser_proxy.js',
+ 'reset_profile_banner_test.js',
+ ]),
+};
+
+TEST_F('CrSettingsResetProfileBannerTest', 'ResetProfileBanner', function() {
mocha.run();
});

Powered by Google App Engine
This is Rietveld 408576698