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

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

Issue 2157673002: Browser tests for the quick_unlock settings pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pin-unlock-quick-unlock-interface
Patch Set: Address comments Created 4 years, 2 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 8664769f725181ca5151136e38297568d8c73a84..b24b925c5e4c02f8635a596cfe3cf702d7d0c776 100644
--- a/chrome/test/data/webui/settings/cr_settings_browsertest.js
+++ b/chrome/test/data/webui/settings/cr_settings_browsertest.js
@@ -158,6 +158,95 @@ TEST_F('CrSettingsAboutPageTest', 'AboutPage_OfficialBuild', function() {
GEN('#endif');
GEN('#if defined(OS_CHROMEOS)');
+
+/**
+ * Test fixture for
+ * chrome/browser/resources/settings/people_page/password_prompt_dialog.html.
+ * This is ChromeOS only.
+ * @constructor
+ * @extends {CrSettingsBrowserTest}
+*/
+function CrSettingsPeoplePageQuickUnlockAuthenticateTest() {}
+
+CrSettingsPeoplePageQuickUnlockAuthenticateTest.prototype = {
+ __proto__: CrSettingsBrowserTest.prototype,
+
+ /** @override */
+ browsePreload: 'chrome://md-settings/people_page/password_prompt_dialog.html',
+
+ /** @override */
+ extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
+ '../fake_chrome_event.js',
+ 'fake_quick_unlock_private.js',
+ 'quick_unlock_authenticate_browsertest_chromeos.js'
+ ]),
+};
+
+TEST_F('CrSettingsPeoplePageQuickUnlockAuthenticateTest', 'Test', function() {
+ settings_people_page_quick_unlock.registerAuthenticateTests();
+ mocha.run();
+});
+
+/**
+ * Test fixture for
+ * chrome/browser/resources/settings/people_page/lock_screen.html
+ * This is ChromeOS only.
+ * @constructor
+ * @extends {CrSettingsBrowserTest}
+*/
+function CrSettingsPeoplePageLockScreenTest() {}
+
+CrSettingsPeoplePageLockScreenTest.prototype = {
+ __proto__: CrSettingsBrowserTest.prototype,
+
+ /** @override */
+ //browsePreload: 'chrome://md-settings/settings_main/settings_main.html',
+ browsePreload: 'chrome://md-settings/people_page/lock_screen.html',
+
+ /** @override */
+ extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
+ '../fake_chrome_event.js',
+ 'fake_quick_unlock_private.js',
+ 'fake_settings_private.js',
+ 'quick_unlock_authenticate_browsertest_chromeos.js'
+ ]),
+};
+
+TEST_F('CrSettingsPeoplePageLockScreenTest', 'Test', function() {
+ settings_people_page_quick_unlock.registerLockScreenTests();
+ mocha.run();
+});
+
+/**
+ * Test fixture for
+ * chrome/browser/resources/settings/people_page/setup_pin_dialog.html.
+ *
+ * This is ChromeOS only.
+ * @constructor
+ * @extends {CrSettingsBrowserTest}
+*/
+function CrSettingsPeoplePageSetupPinDialogTest() {}
+
+CrSettingsPeoplePageSetupPinDialogTest.prototype = {
+ __proto__: CrSettingsBrowserTest.prototype,
+
+ /** @override */
+ browsePreload: 'chrome://md-settings/people_page/setup_pin_dialog.html',
+
+ /** @override */
+ extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
+ '../fake_chrome_event.js',
+ 'fake_quick_unlock_private.js',
+ 'fake_settings_private.js',
+ 'quick_unlock_authenticate_browsertest_chromeos.js'
+ ]),
+};
+
+TEST_F('CrSettingsPeoplePageSetupPinDialogTest', 'Test', function() {
+ settings_people_page_quick_unlock.registerSetupPinDialogTests();
+ mocha.run();
+});
+
/**
* Test fixture for
* chrome/browser/resources/settings/people_page/change_picture.html.
« no previous file with comments | « chrome/browser/ui/webui/options/options_ui.cc ('k') | chrome/test/data/webui/settings/fake_quick_unlock_private.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698