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

Side by Side Diff: chrome/browser/ui/webui/options/browser_options_browsertest.js

Issue 298553002: Options: maintain history entries on the parent frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dbeam comments Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * TestFixture for browser options WebUI testing. 6 * TestFixture for browser options WebUI testing.
7 * @extends {testing.Test} 7 * @extends {testing.Test}
8 * @constructor 8 * @constructor
9 */ 9 */
10 function BrowserOptionsWebUITest() {} 10 function BrowserOptionsWebUITest() {}
(...skipping 21 matching lines...) Expand all
32 /** 32 /**
33 * @extends {testing.Test} 33 * @extends {testing.Test}
34 * @constructor 34 * @constructor
35 */ 35 */
36 function BrowserOptionsFrameWebUITest() {} 36 function BrowserOptionsFrameWebUITest() {}
37 37
38 BrowserOptionsFrameWebUITest.prototype = { 38 BrowserOptionsFrameWebUITest.prototype = {
39 __proto__: testing.Test.prototype, 39 __proto__: testing.Test.prototype,
40 40
41 /** @override */ 41 /** @override */
42 browsePreload: 'chrome://settings-frame/settings', 42 browsePreload: 'chrome://settings-frame/',
43 }; 43 };
44 44
45 TEST_F('BrowserOptionsFrameWebUITest', 'testAdvancedSettingsHiddenByDefault', 45 TEST_F('BrowserOptionsFrameWebUITest', 'testAdvancedSettingsHiddenByDefault',
46 function() { 46 function() {
47 assertEquals(this.browsePreload, document.location.href); 47 assertEquals(this.browsePreload, document.location.href);
48 expectTrue($('advanced-settings').hidden); 48 expectTrue($('advanced-settings').hidden);
49 }); 49 });
50 50
51 51
52 /** 52 /**
53 * @extends {testing.Test} 53 * @extends {testing.Test}
54 * @constructor 54 * @constructor
55 */ 55 */
56 function AdvancedSettingsWebUITest() {} 56 function AdvancedSettingsWebUITest() {}
57 57
58 AdvancedSettingsWebUITest.prototype = { 58 AdvancedSettingsWebUITest.prototype = {
59 __proto__: testing.Test.prototype, 59 __proto__: testing.Test.prototype,
60 60
61 /** @override */ 61 /** @override */
62 browsePreload: 'chrome://settings-frame/autofill', 62 browsePreload: 'chrome://settings-frame/autofill',
63 }; 63 };
64 64
65 TEST_F('AdvancedSettingsWebUITest', 'testAdvancedSettingsShown', function() { 65 TEST_F('AdvancedSettingsWebUITest', 'testAdvancedSettingsShown', function() {
66 assertEquals(this.browsePreload, document.location.href); 66 assertEquals(this.browsePreload, document.location.href);
67 expectFalse($('advanced-settings').hidden); 67 expectFalse($('advanced-settings').hidden);
68 }); 68 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/uber/uber_utils.js ('k') | chrome/browser/ui/webui/options/chromeos/bluetooth_options_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698