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

Side by Side Diff: chrome/test/data/extensions/api_test/browser_action/open_popup/open_popup_succeeds.js

Issue 25305002: Implement initial chrome.browserAction.openPopup API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move to interactive_ui_test Created 7 years, 2 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Open a popup then return control to the ApiTest.
6 // The ApiTest can reply to the ready message to request another popup to open.
7 chrome.browserAction.openPopup(function(popupWindow) {
8 chrome.test.assertTrue(!!popupWindow);
9 chrome.test.notifyPass();
10 chrome.test.sendMessage('ready', function() {
11 chrome.browserAction.openPopup(function(popupWindow2) {
12 chrome.test.assertTrue(!!popupWindow2);
13 chrome.test.succeed();
14 });
15 });
16 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698