Index: chrome/browser/ui/webui/options/profile_settings_reset_browsertest.js |
diff --git a/chrome/browser/ui/webui/options/profile_settings_reset_browsertest.js b/chrome/browser/ui/webui/options/profile_settings_reset_browsertest.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ba40eaa08c7d0e65077da5d1b019018d5791792d |
--- /dev/null |
+++ b/chrome/browser/ui/webui/options/profile_settings_reset_browsertest.js |
@@ -0,0 +1,25 @@ |
+// Copyright 2013 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. |
+ |
+/** |
+ * TestFixture for profile settings reset WebUI testing. |
+ * @extends {testing.Test} |
+ * @constructor |
+ **/ |
+function ProfileSettingsResetWebUITest() {} |
+ |
+ProfileSettingsResetWebUITest.prototype = { |
+ __proto__: testing.Test.prototype, |
+ |
+ /** |
+ * Browse to the reset profile settings page. |
+ **/ |
+ browsePreload: 'chrome://settings-frame/resetProfileSettings', |
+}; |
+ |
+// Test opening the profile settings reset has correct location. |
+TEST_F('ProfileSettingsResetWebUITest', 'testOpenProfileSettingsReset', |
+ function() { |
+ assertEquals(this.browsePreload, document.location.href); |
+ }); |