| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |