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

Side by Side Diff: chrome/test/data/webui/extensions/extension_test_util.js

Issue 2329443004: [MD Extensions] Implement opening tab-style options pages (Closed)
Patch Set: Michael's Created 4 years, 3 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
« no previous file with comments | « chrome/test/data/webui/extensions/extension_detail_view_test.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « chrome/test/data/webui/extensions/extension_detail_view_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698