Chromium Code Reviews| 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
|
| + }); |
| + })); |
| + } |
| + ]); |
| +}); |