| 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 /** | 5 /** |
| 6 * @fileoverview Library providing basic test framework functionality. | 6 * @fileoverview Library providing basic test framework functionality. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Namespace for |Test|. | 10 * Namespace for |Test|. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 /** | 56 /** |
| 57 * When set to a string value representing an html page in the test | 57 * When set to a string value representing an html page in the test |
| 58 * directory, generate BrowsePrintPreload call, which will browse to a url | 58 * directory, generate BrowsePrintPreload call, which will browse to a url |
| 59 * representing the file, cause print, and call fixture.preLoad of the | 59 * representing the file, cause print, and call fixture.preLoad of the |
| 60 * currentTestCase. | 60 * currentTestCase. |
| 61 * @type {string} | 61 * @type {string} |
| 62 */ | 62 */ |
| 63 browsePrintPreload: null, | 63 browsePrintPreload: null, |
| 64 | 64 |
| 65 /** | 65 /** |
| 66 * When false, indicate to the browsertest not to print but still to wait |
| 67 * for a new tab for the case where the browsed-to page will cause a print, |
| 68 * with window.print(). |
| 69 * @type {boolean} |
| 70 **/ |
| 71 print: true, |
| 72 |
| 73 /** |
| 66 * When set to a function, will be called in the context of the test | 74 * When set to a function, will be called in the context of the test |
| 67 * generation inside the function, and before any generated C++. | 75 * generation inside the function, and before any generated C++. |
| 68 * @type {function(string,string)} | 76 * @type {function(string,string)} |
| 69 */ | 77 */ |
| 70 testGenPreamble: null, | 78 testGenPreamble: null, |
| 71 | 79 |
| 72 /** | 80 /** |
| 73 * When set to a function, will be called in the context of the test | 81 * When set to a function, will be called in the context of the test |
| 74 * generation inside the function, and after any generated C++. | 82 * generation inside the function, and after any generated C++. |
| 75 * @type {function(string,string)} | 83 * @type {function(string,string)} |
| (...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 window.SaveMockArguments = SaveMockArguments; | 1293 window.SaveMockArguments = SaveMockArguments; |
| 1286 window.DUMMY_URL = DUMMY_URL; | 1294 window.DUMMY_URL = DUMMY_URL; |
| 1287 window.TEST = TEST; | 1295 window.TEST = TEST; |
| 1288 window.TEST_F = TEST_F; | 1296 window.TEST_F = TEST_F; |
| 1289 window.GEN = GEN; | 1297 window.GEN = GEN; |
| 1290 window.WhenTestDone = WhenTestDone; | 1298 window.WhenTestDone = WhenTestDone; |
| 1291 | 1299 |
| 1292 // Import the Mock4JS helpers. | 1300 // Import the Mock4JS helpers. |
| 1293 Mock4JS.addMockSupport(window); | 1301 Mock4JS.addMockSupport(window); |
| 1294 })(('window' in this) ? window : this); | 1302 })(('window' in this) ? window : this); |
| OLD | NEW |