| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |