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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/test_api.js
diff --git a/chrome/test/data/webui/test_api.js b/chrome/test/data/webui/test_api.js
index fb8108b93f85acf17551dd4a609e0500aa39986e..17130d827e79528b1eb1258c9cdbbfb9b1347122 100644
--- a/chrome/test/data/webui/test_api.js
+++ b/chrome/test/data/webui/test_api.js
@@ -63,6 +63,14 @@ var testing = {};
browsePrintPreload: null,
/**
+ * When false, indicate to the browsertest not to print but still to wait
+ * for a new tab for the case where the browsed-to page will cause a print,
+ * with window.print().
+ * @type {boolean}
+ **/
+ print: true,
+
+ /**
* When set to a function, will be called in the context of the test
* generation inside the function, and before any generated C++.
* @type {function(string,string)}

Powered by Google App Engine
This is Rietveld 408576698