| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 Externs generated from namespace: test */ | 5 /** @fileoverview Externs generated from namespace: test */ |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @const | 8 * @const |
| 9 */ | 9 */ |
| 10 chrome.test = {}; | 10 chrome.test = {}; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 * @param {?=} message | 55 * @param {?=} message |
| 56 */ | 56 */ |
| 57 chrome.test.fail = function(message) {}; | 57 chrome.test.fail = function(message) {}; |
| 58 | 58 |
| 59 /** | 59 /** |
| 60 * @param {?=} message | 60 * @param {?=} message |
| 61 */ | 61 */ |
| 62 chrome.test.succeed = function(message) {}; | 62 chrome.test.succeed = function(message) {}; |
| 63 | 63 |
| 64 /** | 64 /** |
| 65 * Runs the given function with access to native methods enabled. | |
| 66 * @param {Function} callback | |
| 67 */ | |
| 68 chrome.test.runWithNativesEnabled = function(callback) {}; | |
| 69 | |
| 70 /** | |
| 71 * Returns an instance of the ModuleSystem for the given context. | 65 * Returns an instance of the ModuleSystem for the given context. |
| 72 * @param {Object} context | 66 * @param {Object} context |
| 73 */ | 67 */ |
| 74 chrome.test.getModuleSystem = function(context) {}; | 68 chrome.test.getModuleSystem = function(context) {}; |
| 75 | 69 |
| 76 /** | 70 /** |
| 77 * @param {?} test | 71 * @param {?} test |
| 78 * @param {string=} message | 72 * @param {string=} message |
| 79 */ | 73 */ |
| 80 chrome.test.assertTrue = function(test, message) {}; | 74 chrome.test.assertTrue = function(test, message) {}; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 /** | 185 /** |
| 192 * Sets the function to be called when an exception occurs. By default this is | 186 * Sets the function to be called when an exception occurs. By default this is |
| 193 * a function which fails the test. This is reset for every test run through | 187 * a function which fails the test. This is reset for every test run through |
| 194 * $ref:test.runTests. | 188 * $ref:test.runTests. |
| 195 * @param {Function} callback | 189 * @param {Function} callback |
| 196 */ | 190 */ |
| 197 chrome.test.setExceptionHandler = function(callback) {}; | 191 chrome.test.setExceptionHandler = function(callback) {}; |
| 198 | 192 |
| 199 /** @type {!ChromeEvent} */ | 193 /** @type {!ChromeEvent} */ |
| 200 chrome.test.onMessage; | 194 chrome.test.onMessage; |
| OLD | NEW |