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

Side by Side Diff: chrome/test/data/extensions/api_test/permissions/experimental_disabled/background.html

Issue 7432006: Add an experimental permissions API for extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang Created 9 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 | Annotate | Revision Log
OLDNEW
1 <script> 1 <script>
2 // Calls to chrome.experimental.* functions should fail, since this extension 2 // Calls to chrome.experimental.* functions should fail, since this extension
3 // has not declared that permission. 3 // has not declared that permission.
4 4
5 chrome.test.runTests([ 5 chrome.test.runTests([
6 function experimental() { 6 function experimental() {
7 chrome.tabs.getSelected(null, function(tab) { 7 chrome.tabs.getSelected(null, function(tab) {
8 try { 8 try {
9 chrome.experimental.processes.getProcessForTab(tab.id, 9 chrome.experimental.processes.getProcessForTab(tab.id,
10 function(process) { 10 function(process) {
11 chrome.test.fail(); 11 chrome.test.fail();
12 }); 12 });
13 } catch (e) { 13 } catch (e) {
14 chrome.test.succeed(); 14 chrome.test.succeed();
15 } 15 }
16 }); 16 });
17 } 17 }
18 ]); 18 ]);
19 </script> 19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698