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

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: Removed unnecessary code that was breaking builds 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..98f0b3efecc2eba3d310225807e70c9842b39355
--- /dev/null
+++ b/chrome/test/data/extensions/platform_apps/print_api/test.js
@@ -0,0 +1,17 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+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();
+ });
+ }));
+ }
+ ]);
+});
« 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