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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 chrome.app.runtime.onLaunched.addListener(function() {
2 chrome.test.runTests([
3 function testWindowDotPrintCallWorks() {
4 chrome.app.window.create('test.html', {}, chrome.test.callbackPass(
5 function(appWindow) {
6 appWindow.contentWindow.onload = chrome.test.callbackPass(
7 function() {
8 appWindow.contentWindow.print();
9 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
10 });
11 }));
12 }
13 ]);
14 });
OLDNEW
« 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