Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: chrome/test/data/extensions/api_test/context_menus/no_perms/test.js

Issue 2840038: Move context menu module out of experimental. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: kathy changes Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 var tests = [
6 function simple() {
7 try {
8 chrome.contextMenus.create({"title":"1"}, function() {
9 });
10 } catch (e) {
11 chrome.test.assertTrue(e.message.indexOf(
12 "You do not have permission to use 'contextMenus.create'") == 0);
13 chrome.test.succeed();
14 return;
15 }
16
17 chrome.test.fail("Should have gotten access error.");
18 }
19 ];
20
21 chrome.test.runTests(tests);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698