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

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

Issue 2522303002: [MD Extensions] Add logic for opening the extension's home page (Closed)
Patch Set: add comment Created 4 years 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 var baseUrl = 'chrome-extension://' + id + '/'; 168 var baseUrl = 'chrome-extension://' + id + '/';
169 return Object.assign({ 169 return Object.assign({
170 commands: [], 170 commands: [],
171 dependentExtensions: [], 171 dependentExtensions: [],
172 description: 'This is an extension', 172 description: 'This is an extension',
173 disableReasons: { 173 disableReasons: {
174 suspiciousInstall: false, 174 suspiciousInstall: false,
175 corruptInstall: false, 175 corruptInstall: false,
176 updateRequired: false, 176 updateRequired: false,
177 }, 177 },
178 homePage: {specified: false, url: ''},
178 iconUrl: 'chrome://extension-icon/' + id + '/24/0', 179 iconUrl: 'chrome://extension-icon/' + id + '/24/0',
179 id: id, 180 id: id,
180 incognitoAccess: {isEnabled: true, isActive: false}, 181 incognitoAccess: {isEnabled: true, isActive: false},
181 location: 'FROM_STORE', 182 location: 'FROM_STORE',
182 manifestErrors: [], 183 manifestErrors: [],
183 name: 'Wonderful Extension', 184 name: 'Wonderful Extension',
184 runtimeErrors: [], 185 runtimeErrors: [],
185 permissions: [], 186 permissions: [],
186 state: 'ENABLED', 187 state: 'ENABLED',
187 type: 'EXTENSION', 188 type: 'EXTENSION',
(...skipping 18 matching lines...) Expand all
206 return { 207 return {
207 ClickMock: ClickMock, 208 ClickMock: ClickMock,
208 ListenerMock: ListenerMock, 209 ListenerMock: ListenerMock,
209 MockItemDelegate: MockItemDelegate, 210 MockItemDelegate: MockItemDelegate,
210 isVisible: isVisible, 211 isVisible: isVisible,
211 testVisible: testVisible, 212 testVisible: testVisible,
212 createExtensionInfo: createExtensionInfo, 213 createExtensionInfo: createExtensionInfo,
213 testIronIcons: testIronIcons, 214 testIronIcons: testIronIcons,
214 }; 215 };
215 }); 216 });
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