Index: chrome/test/data/extensions/context_menus/frames/test.js |
diff --git a/chrome/test/data/extensions/context_menus/frames/test.js b/chrome/test/data/extensions/context_menus/frames/test.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..65d65619c6fb2414341df246819820c260cb356b |
--- /dev/null |
+++ b/chrome/test/data/extensions/context_menus/frames/test.js |
@@ -0,0 +1,19 @@ |
+// Copyright (c) 2011 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. |
+ |
+window.onload = function() { |
+ chrome.contextMenus.create( |
+ {"title":"Page item", contexts: ["page"]}, |
+ function() { |
+ if (!chrome.extension.lastError) { |
+ chrome.contextMenus.create( |
+ {"title":"Frame item", contexts: ["frame"]}, |
+ function() { |
+ if (!chrome.extension.lastError) { |
+ chrome.test.sendMessage("created items"); |
+ } |
+ }); |
+ } |
+ }); |
+}; |