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

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: Address Kausalya'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 4e554bd8722b8d8d7051966d576dba1cdbb20ed3..502c5f24ad287c5b4ec4104bc6aeb72519e06dba 100644
--- a/chrome/test/data/webui/test_api.js
+++ b/chrome/test/data/webui/test_api.js
@@ -77,6 +77,14 @@ var currentTestArguments = null;
browsePrintPreload: null,
/**
+ * When true, 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}
+ **/
+ noPrint: false,
+
+ /**
* 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