190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved.
290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// found in the LICENSE file.
490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/**
690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) * TestFixture for profile settings reset WebUI testing.
790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) * @extends {testing.Test}
890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) * @constructor
95c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu */
1090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)function ProfileSettingsResetWebUITest() {}
1190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
1290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)ProfileSettingsResetWebUITest.prototype = {
1390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)  __proto__: testing.Test.prototype,
1490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
1590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)  /**
1690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)   * Browse to the reset profile settings page.
175c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu   */
1890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)  browsePreload: 'chrome://settings-frame/resetProfileSettings',
1990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)};
2090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
2190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Test opening the profile settings reset has correct location.
2290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)TEST_F('ProfileSettingsResetWebUITest', 'testOpenProfileSettingsReset',
2390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)       function() {
2490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)         assertEquals(this.browsePreload, document.location.href);
2590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)       });
26