Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 var chrome = chrome || {}; | |
| 9 (function() { | 8 (function() { |
|
Matt Perry
2012/03/02 02:15:49
This sort of extra wrapping can go away in all the
koz (OOO until 15th September)
2012/03/02 02:23:06
Yes, that's right. I've removed it from all the fi
not at google - send to devlin
2012/03/02 02:24:00
As in, who to blame for unnecessary indentation?
| |
| 10 chrome.test = chrome.test || {}; | 9 chrome.test = chrome.test || {}; |
| 11 | 10 |
| 12 chrome.test.tests = chrome.test.tests || []; | 11 chrome.test.tests = chrome.test.tests || []; |
| 13 | 12 |
| 14 var completed = false; | 13 var completed = false; |
| 15 var currentTest = null; | 14 var currentTest = null; |
| 16 var lastTest = null; | 15 var lastTest = null; |
| 17 | 16 |
| 18 function complete() { | 17 function complete() { |
| 19 completed = true; | 18 completed = true; |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 269 | 268 |
| 270 chrome.test.callbackFail = function(expectedError, func) { | 269 chrome.test.callbackFail = function(expectedError, func) { |
| 271 return chrome.test.callback(func, expectedError); | 270 return chrome.test.callback(func, expectedError); |
| 272 }; | 271 }; |
| 273 | 272 |
| 274 chrome.test.runTests = function(tests) { | 273 chrome.test.runTests = function(tests) { |
| 275 chrome.test.tests = tests; | 274 chrome.test.tests = tests; |
| 276 chrome.test.runNextTest(); | 275 chrome.test.runNextTest(); |
| 277 }; | 276 }; |
| 278 })(); | 277 })(); |
| OLD | NEW |