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

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

Issue 1530002: Move history API out of experimental. Allow extensions to override history page. (Closed)
Patch Set: Rebase for commit. Created 10 years, 8 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
1 <script> 1 <script>
2 // All of these tests should fail, since this extension has requested no 2 // All of the calls to chrome.* functions should fail, since this extension
3 // permissions. 3 // has requested no permissions.
4 4
5 chrome.test.runTests([ 5 chrome.test.runTests([
6 function history() { 6 function history() {
7 try { 7 try {
8 var query = { 'text': '', 'maxResults': 1 }; 8 var query = { 'text': '', 'maxResults': 1 };
9 chrome.experimental.history.search(query, function(results) { 9 chrome.history.search(query, function(results) {
10 chrome.test.fail(); 10 chrome.test.fail();
11 }); 11 });
12 } catch (e) { 12 } catch (e) {
13 chrome.test.succeed(); 13 chrome.test.succeed();
14 } 14 }
15 }, 15 },
16 16
17 function bookmarks() { 17 function bookmarks() {
18 try { 18 try {
19 chrome.bookmarks.get("1", function(results) { 19 chrome.bookmarks.get("1", function(results) {
20 chrome.test.fail(); 20 chrome.test.fail();
21 }); 21 });
22 } catch (e) { 22 } catch (e) {
23 chrome.test.succeed(); 23 chrome.test.succeed();
24 } 24 }
25 }, 25 },
26 26
27 function tabs() { 27 function tabs() {
28 try { 28 try {
29 chrome.tabs.getSelected(null, function(results) { 29 chrome.tabs.getSelected(null, function(results) {
30 chrome.test.fail(); 30 chrome.test.fail();
31 }); 31 });
32 } catch (e) { 32 } catch (e) {
33 chrome.test.succeed(); 33 chrome.test.succeed();
34 } 34 }
35 } 35 }
36 ]); 36 ]);
37 </script> 37 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698