| Index: chrome/test/data/extensions/api_test/browser_action/open_popup/open_popup_succeeds.js
|
| diff --git a/chrome/test/data/extensions/api_test/browser_action/open_popup/open_popup_succeeds.js b/chrome/test/data/extensions/api_test/browser_action/open_popup/open_popup_succeeds.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..68d1206b07e63d4479a2dd8e6e8e81fc1a120982
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/browser_action/open_popup/open_popup_succeeds.js
|
| @@ -0,0 +1,16 @@
|
| +// Copyright (c) 2013 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.
|
| +
|
| +// Open a popup then return control to the ApiTest.
|
| +// The ApiTest can reply to the ready message to request another popup to open.
|
| +chrome.browserAction.openPopup(function(popupWindow) {
|
| + chrome.test.assertTrue(!!popupWindow);
|
| + chrome.test.notifyPass();
|
| + chrome.test.sendMessage('ready', function() {
|
| + chrome.browserAction.openPopup(function(popupWindow2) {
|
| + chrome.test.assertTrue(!!popupWindow2);
|
| + chrome.test.succeed();
|
| + });
|
| + });
|
| +});
|
|
|