| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // extension_apitest.js | 5 // extension_apitest.js |
| 6 // mini-framework for ExtensionApiTest browser tests | 6 // mini-framework for ExtensionApiTest browser tests |
| 7 | 7 |
| 8 chrome.test = chrome.test || {}; | 8 chrome.test = chrome.test || {}; |
| 9 | 9 |
| 10 chrome.test.tests = chrome.test.tests || []; | 10 chrome.test.tests = chrome.test.tests || []; |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 265 |
| 266 chrome.test.callbackFail = function(expectedError, func) { | 266 chrome.test.callbackFail = function(expectedError, func) { |
| 267 return chrome.test.callback(func, expectedError); | 267 return chrome.test.callback(func, expectedError); |
| 268 }; | 268 }; |
| 269 | 269 |
| 270 chrome.test.runTests = function(tests) { | 270 chrome.test.runTests = function(tests) { |
| 271 chrome.test.tests = tests; | 271 chrome.test.tests = tests; |
| 272 testCount = chrome.test.tests.length; | 272 testCount = chrome.test.tests.length; |
| 273 chrome.test.runNextTest(); | 273 chrome.test.runNextTest(); |
| 274 }; | 274 }; |
| OLD | NEW |