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

Unified Diff: chrome/test/data/extensions/platform_apps/print_api/test.js

Issue 23054002: Added basic browser test for window.print() from Chrome apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
« no previous file with comments | « chrome/test/data/extensions/platform_apps/print_api/test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/platform_apps/print_api/test.js
diff --git a/chrome/test/data/extensions/platform_apps/print_api/test.js b/chrome/test/data/extensions/platform_apps/print_api/test.js
new file mode 100644
index 0000000000000000000000000000000000000000..eb132cbf67a69fa7c0e72aa9ecf4b090cf22fcde
--- /dev/null
+++ b/chrome/test/data/extensions/platform_apps/print_api/test.js
@@ -0,0 +1,14 @@
+chrome.app.runtime.onLaunched.addListener(function() {
+ chrome.test.runTests([
+ function testWindowDotPrintCallWorks() {
+ chrome.app.window.create('test.html', {}, chrome.test.callbackPass(
+ function(appWindow) {
+ appWindow.contentWindow.onload = chrome.test.callbackPass(
+ function() {
+ appWindow.contentWindow.print();
+ chrome.test.notifyPass();
asargent_no_longer_on_chrome 2013/08/13 22:38:54 nit: I don't think you need this final call here -
dharcourt 2013/08/13 23:06:31 Fixed, thanks! I thought I had tried that earlier
+ });
+ }));
+ }
+ ]);
+});
« no previous file with comments | « chrome/test/data/extensions/platform_apps/print_api/test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698