| Index: chrome/test/data/extensions/api_test/page_action/basics/update.js
|
| ===================================================================
|
| --- chrome/test/data/extensions/api_test/page_action/basics/update.js (revision 0)
|
| +++ chrome/test/data/extensions/api_test/page_action/basics/update.js (revision 0)
|
| @@ -0,0 +1,12 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// Test that we can change various properties of the browser action.
|
| +// The C++ verifies.
|
| +chrome.tabs.getSelected(null, function(tab) {
|
| + chrome.pageAction.show(tab.id);
|
| + chrome.pageAction.setTitle({title: "Modified", tabId: tab.id});
|
| +
|
| + chrome.test.notifyPass();
|
| +});
|
|
|