| Index: chrome/test/data/extensions/activity_log/options.js
|
| diff --git a/chrome/test/data/extensions/activity_log/options.js b/chrome/test/data/extensions/activity_log/options.js
|
| index 1d3ab81558746607fe0753ec7d1dca9de39b4a89..2adcb299a7bd0118a4bf49beb6d70f66e274bf96 100644
|
| --- a/chrome/test/data/extensions/activity_log/options.js
|
| +++ b/chrome/test/data/extensions/activity_log/options.js
|
| @@ -48,6 +48,20 @@ function makeApiCall() {
|
| setCompleted('makeApiCall');
|
| }
|
|
|
| +// Makes an API call that has a custom binding.
|
| +function makeSpecialApiCalls() {
|
| + var url = chrome.extension.getURL("image/cat.jpg");
|
| + var noparam = chrome.extension.getViews();
|
| + setCompleted('makeSpecialApiCalls');
|
| +}
|
| +
|
| +// Checks that we don't double-log calls that go through setHandleRequest
|
| +// *and* the ExtensionFunction machinery.
|
| +function checkNoDoubleLogging() {
|
| + chrome.omnibox.setDefaultSuggestion({description: 'hello world'});
|
| + setCompleted('checkNoDoubleLogging');
|
| +}
|
| +
|
| // Makes an API call that the extension doesn't have permission for.
|
| function makeBlockedApiCall() {
|
| try {
|
| @@ -158,12 +172,14 @@ function doWebRequestModifications() {
|
| // Attach the tests to buttons.
|
| function setupEvents() {
|
| $('api_call').addEventListener('click', makeApiCall);
|
| + $('special_call').addEventListener('click', makeSpecialApiCalls);
|
| $('blocked_call').addEventListener('click', makeBlockedApiCall);
|
| $('inject_cs').addEventListener('click', injectContentScript);
|
| $('inject_blob').addEventListener('click', injectScriptBlob);
|
| $('background_xhr').addEventListener('click', doBackgroundXHR);
|
| $('cs_xhr').addEventListener('click', doContentScriptXHR);
|
| $('webrequest').addEventListener('click', doWebRequestModifications);
|
| + $('double').addEventListener('click', checkNoDoubleLogging);
|
|
|
| completed = 0;
|
| total = document.getElementsByTagName('button').length;
|
|
|