| Index: chrome/test/data/extensions/api_test/browser_action/basics/background.js
|
| diff --git a/chrome/test/data/extensions/api_test/browser_action/basics/background.js b/chrome/test/data/extensions/api_test/browser_action/basics/background.js
|
| index 41609111d986ab0064f455e89ca4a3bef1313d06..db07f4300108c91b1cc32396f0e0053474b7545d 100644
|
| --- a/chrome/test/data/extensions/api_test/browser_action/basics/background.js
|
| +++ b/chrome/test/data/extensions/api_test/browser_action/basics/background.js
|
| @@ -3,8 +3,16 @@
|
| // found in the LICENSE file.
|
|
|
| // Called when the user clicks on the browser action.
|
| -chrome.browserAction.onClicked.addListener(function(windowId) {
|
| - chrome.tabs.executeScript(null, {code:"document.body.bgColor='red'"});
|
| +chrome.browserAction.onClicked.addListener(function(tab) {
|
| + // Privacy-sensitive properties are treated specially. Ensure they are
|
| + // present.
|
| + chrome.test.assertTrue(Boolean(tab.url.length));
|
| + chrome.test.assertTrue(Boolean(tab.title.length));
|
| +
|
| + // Everything else is handled in a general way and should of course also
|
| + // be present.
|
| + chrome.test.assertTrue(Boolean(tab.id));
|
| + chrome.test.notifyPass();
|
| });
|
|
|
| chrome.test.notifyPass();
|
|
|