Index: chrome/test/data/extensions/api_test/clipboard/set_image_data/main.js |
diff --git a/chrome/test/data/extensions/api_test/clipboard/set_image_data/main.js b/chrome/test/data/extensions/api_test/clipboard/set_image_data/main.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..02f64f1c3039055054fd1d3bf494887000727fe1 |
--- /dev/null |
+++ b/chrome/test/data/extensions/api_test/clipboard/set_image_data/main.js |
@@ -0,0 +1,15 @@ |
+// Copyright 2016 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. |
+ |
+var clipDataChangedCount = 0; |
+ |
+chrome.app.runtime.onLaunched.addListener(function(launchData) { |
+ chrome.app.window.create('app_main.html', {width: 500, height: 500}); |
+}); |
+ |
+chrome.clipboard.onClipboardDataChanged.addListener(function() { |
+ clipDataChangedCount++; |
+ chrome.test.sendMessage('clipboard data changed ' + clipDataChangedCount); |
+}); |
+ |