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 GEN_INCLUDE([ | 5 GEN_INCLUDE(['assert_additions.js']); |
6 'chrome/browser/resources/chromeos/chromevox/testing/assert_additions.js']); | 6 GEN_INCLUDE(['common.js', |
7 GEN_INCLUDE([ | 7 'callback_helper.js']); |
8 'chrome/browser/resources/chromeos/chromevox/testing/common.js', | |
9 'chrome/browser/resources/chromeos/chromevox/testing/callback_helper.js']); | |
10 | 8 |
11 /** | 9 /** |
12 * Base test fixture for ChromeVox unit tests. | 10 * Base test fixture for ChromeVox unit tests. |
13 * | 11 * |
14 * Note that while conceptually these are unit tests, these tests need | 12 * Note that while conceptually these are unit tests, these tests need |
15 * to run in a full web page, so they're actually run as WebUI browser | 13 * to run in a full web page, so they're actually run as WebUI browser |
16 * tests. | 14 * tests. |
17 * | 15 * |
18 * @constructor | 16 * @constructor |
19 * @extends {testing.Test} | 17 * @extends {testing.Test} |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 * {@code testDone()} will be called when all callbacks have been called. | 206 * {@code testDone()} will be called when all callbacks have been called. |
209 * @param {Function=} opt_callback Wrapped callback that will have its this | 207 * @param {Function=} opt_callback Wrapped callback that will have its this |
210 * reference bound to the test fixture. | 208 * reference bound to the test fixture. |
211 * @return {Function} | 209 * @return {Function} |
212 */ | 210 */ |
213 newCallback: function(opt_callback) { | 211 newCallback: function(opt_callback) { |
214 assertNotEquals(null, this.callbackHelper_); | 212 assertNotEquals(null, this.callbackHelper_); |
215 return this.callbackHelper_.wrap(opt_callback); | 213 return this.callbackHelper_.wrap(opt_callback); |
216 } | 214 } |
217 }; | 215 }; |
OLD | NEW |