| 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 /** | 5 /** |
| 6 * Base test fixture for ChromeVox end to end tests. | 6 * Base test fixture for ChromeVox end to end tests. |
| 7 * | 7 * |
| 8 * These tests run against production ChromeVox inside of the extension's | 8 * These tests run against production ChromeVox inside of the extension's |
| 9 * background page context. | 9 * background page context. |
| 10 * @constructor | 10 * @constructor |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 * Similar to |TEST_F|. Generates a test for the given |testFixture|, | 59 * Similar to |TEST_F|. Generates a test for the given |testFixture|, |
| 60 * |testName|, and |testFunction|. | 60 * |testName|, and |testFunction|. |
| 61 * Used this variant when an |isAsync| fixture wants to temporarily mix in an | 61 * Used this variant when an |isAsync| fixture wants to temporarily mix in an |
| 62 * sync test. | 62 * sync test. |
| 63 * @param {string} testFixture Fixture name. | 63 * @param {string} testFixture Fixture name. |
| 64 * @param {string} testName Test name. | 64 * @param {string} testName Test name. |
| 65 * @param {function} testFunction The test impl. | 65 * @param {function} testFunction The test impl. |
| 66 */ | 66 */ |
| 67 function SYNC_TEST_F(testFixture, testName, testFunction) { | 67 function SYNC_TEST_F(testFixture, testName, testFunction) { |
| 68 var wrappedTestFunction = function() { | 68 var wrappedTestFunction = function() { |
| 69 testFunction(); | 69 testFunction.call(this); |
| 70 testDone([true, '']); | 70 testDone([true, '']); |
| 71 }; | 71 }; |
| 72 TEST_F(testFixture, testName, wrappedTestFunction); | 72 TEST_F(testFixture, testName, wrappedTestFunction); |
| 73 } | 73 } |
| OLD | NEW |