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

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

Issue 10837331: Options: s/options2/options/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wut Created 8 years, 4 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 OptionsPage WebUI testing. 6 * TestFixture for OptionsPage WebUI testing.
7 * @extends {testing.Test} 7 * @extends {testing.Test}
8 * @constructor 8 * @constructor
9 */ 9 */
10 function OptionsWebUITest() {} 10 function OptionsWebUITest() {}
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 expectGE(defaultZoomFactor.options.length, defaultZoomFactorMinimumLength); 97 expectGE(defaultZoomFactor.options.length, defaultZoomFactorMinimumLength);
98 98
99 // Simulate a change event, selecting the highest zoom value. Verify that 99 // Simulate a change event, selecting the highest zoom value. Verify that
100 // the javascript handler was invoked once. 100 // the javascript handler was invoked once.
101 this.mockHandler.expects(once()).defaultZoomFactorAction(NOT_NULL). 101 this.mockHandler.expects(once()).defaultZoomFactorAction(NOT_NULL).
102 will(callFunction(function() { })); 102 will(callFunction(function() { }));
103 defaultZoomFactor.selectedIndex = defaultZoomFactor.options.length - 1; 103 defaultZoomFactor.selectedIndex = defaultZoomFactor.options.length - 1;
104 var event = { target: defaultZoomFactor }; 104 var event = { target: defaultZoomFactor };
105 if (defaultZoomFactor.onchange) defaultZoomFactor.onchange(event); 105 if (defaultZoomFactor.onchange) defaultZoomFactor.onchange(event);
106 }); 106 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698