OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 /** @fileoverview Common utilities for extension ui tests. */ | 5 /** @fileoverview Common utilities for extension ui tests. */ |
6 cr.define('extension_test_util', function() { | 6 cr.define('extension_test_util', function() { |
7 /** | 7 /** |
8 * A mock to test that clicking on an element calls a specific method. | 8 * A mock to test that clicking on an element calls a specific method. |
9 * @constructor | 9 * @constructor |
10 */ | 10 */ |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 setItemAllowedOnAllSites: function(id, enabled) {}, | 112 setItemAllowedOnAllSites: function(id, enabled) {}, |
113 | 113 |
114 /** @override */ | 114 /** @override */ |
115 setItemCollectsErrors: function(id, enabled) {}, | 115 setItemCollectsErrors: function(id, enabled) {}, |
116 | 116 |
117 /** @override */ | 117 /** @override */ |
118 inspectItemView: function(id, view) {}, | 118 inspectItemView: function(id, view) {}, |
119 | 119 |
120 /** @override */ | 120 /** @override */ |
121 repairItem: function(id) {}, | 121 repairItem: function(id) {}, |
| 122 |
| 123 /** @override */ |
| 124 showItemOptionsPage: function(id) {}, |
122 }; | 125 }; |
123 | 126 |
124 /** | 127 /** |
125 * Returns whether or not the element specified is visible. | 128 * Returns whether or not the element specified is visible. |
126 * @param {!HTMLElement} parentEl | 129 * @param {!HTMLElement} parentEl |
127 * @param {string} selector | 130 * @param {string} selector |
128 * @param {boolean=} checkLightDom | 131 * @param {boolean=} checkLightDom |
129 * @return {boolean} | 132 * @return {boolean} |
130 */ | 133 */ |
131 function isVisible(parentEl, selector, checkLightDom) { | 134 function isVisible(parentEl, selector, checkLightDom) { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 return { | 204 return { |
202 ClickMock: ClickMock, | 205 ClickMock: ClickMock, |
203 ListenerMock: ListenerMock, | 206 ListenerMock: ListenerMock, |
204 MockItemDelegate: MockItemDelegate, | 207 MockItemDelegate: MockItemDelegate, |
205 isVisible: isVisible, | 208 isVisible: isVisible, |
206 testVisible: testVisible, | 209 testVisible: testVisible, |
207 createExtensionInfo: createExtensionInfo, | 210 createExtensionInfo: createExtensionInfo, |
208 testIronIcons: testIronIcons, | 211 testIronIcons: testIronIcons, |
209 }; | 212 }; |
210 }); | 213 }); |
OLD | NEW |