Index: chrome/test/data/extensions/platform_apps/context_menu/test.js |
diff --git a/chrome/test/data/extensions/platform_apps/context_menu/test.js b/chrome/test/data/extensions/platform_apps/context_menu/test.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..71a31a88a2b8e6567e14e663e7c1ea5f22b18f16 |
--- /dev/null |
+++ b/chrome/test/data/extensions/platform_apps/context_menu/test.js |
@@ -0,0 +1,15 @@ |
+// Copyright (c) 2010 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. |
+ |
+function onclick(info) { |
+} |
+ |
+window.onload = function() { |
+ chrome.contextMenus.create({"title":"Extension Item 1", |
+ "onclick": onclick}, function() { |
+ if (!chrome.extension.lastError) { |
+ chrome.test.sendMessage("created item"); |
+ } |
+ }); |
+}; |