Chromium Code Reviews| Index: chrome/test/data/extensions/context_menus/top_level/multi4/background.js |
| diff --git a/chrome/test/data/extensions/context_menus/top_level/multi4/background.js b/chrome/test/data/extensions/context_menus/top_level/multi4/background.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..537d4b8ce84f1cdca643add06b14006934f8d9a2 |
| --- /dev/null |
| +++ b/chrome/test/data/extensions/context_menus/top_level/multi4/background.js |
| @@ -0,0 +1,15 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
|
Avi (use Gerrit)
2013/06/07 21:05:49
No "(c)" in new files.
François Beaufort
2013/06/10 12:41:12
Done.
|
| +// 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": "Context Menu #1" }, function() { |
| + if (!chrome.runtime.lastError) { |
| + chrome.contextMenus.create({ "title": "Context Menu #2" }, function() { |
| + if (!chrome.runtime.lastError) { |
| + chrome.test.sendMessage("created items"); |
| + } |
| + }); |
| + } |
| + }); |
| +}; |