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 /** | 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 /** | 70 /** |
| 71 * When set to a string value representing an html page in the test | 71 * When set to a string value representing an html page in the test |
| 72 * directory, generate BrowsePrintPreload call, which will browse to a url | 72 * directory, generate BrowsePrintPreload call, which will browse to a url |
| 73 * representing the file, cause print, and call fixture.PreLoad of the | 73 * representing the file, cause print, and call fixture.PreLoad of the |
| 74 * currentTestCase. | 74 * currentTestCase. |
| 75 * @type {string} | 75 * @type {string} |
| 76 **/ | 76 **/ |
| 77 browsePrintPreload: null, | 77 browsePrintPreload: null, |
| 78 | 78 |
| 79 /** | 79 /** |
| 80 * When true, indicate to the browsertest not to print but still to wait for | |
| 81 * a new tab for the case where the browsed-to page will cause a print, with | |
| 82 * window.print(). | |
| 83 * @type {boolean} | |
| 84 **/ | |
| 85 noPrint: false, | |
|
Lei Zhang
2011/08/26 10:01:54
How about changing this to print: true to avoid th
Sheridan Rawlins
2011/08/26 23:45:39
Done.
| |
| 86 | |
| 87 /** | |
| 80 * When set to a function, will be called in the context of the test | 88 * When set to a function, will be called in the context of the test |
| 81 * generation inside the function, and before any generated C++. | 89 * generation inside the function, and before any generated C++. |
| 82 * @type {function(string,string)} | 90 * @type {function(string,string)} |
| 83 **/ | 91 **/ |
| 84 testGenPreamble: null, | 92 testGenPreamble: null, |
| 85 | 93 |
| 86 /** | 94 /** |
| 87 * When set to a function, will be called in the context of the test | 95 * When set to a function, will be called in the context of the test |
| 88 * generation inside the function, and after any generated C++. | 96 * generation inside the function, and after any generated C++. |
| 89 * @type {function(string,string)} | 97 * @type {function(string,string)} |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 791 window.runTest = runTest; | 799 window.runTest = runTest; |
| 792 window.runTestFunction = runTestFunction; | 800 window.runTestFunction = runTestFunction; |
| 793 window.SaveArgumentsMatcher = SaveArgumentsMatcher; | 801 window.SaveArgumentsMatcher = SaveArgumentsMatcher; |
| 794 window.TEST = TEST; | 802 window.TEST = TEST; |
| 795 window.TEST_F = TEST_F; | 803 window.TEST_F = TEST_F; |
| 796 window.GEN = GEN; | 804 window.GEN = GEN; |
| 797 | 805 |
| 798 // Import the Mock4JS helpers. | 806 // Import the Mock4JS helpers. |
| 799 Mock4JS.addMockSupport(window); | 807 Mock4JS.addMockSupport(window); |
| 800 })(); | 808 })(); |
| OLD | NEW |