Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: chrome/test/data/webui/test_api.js

Issue 7574002: Be able to print items that do window.print(); window.close() (airline tix e.g.) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Lei's comments. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698