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

Side by Side Diff: chrome/test/data/extensions/api_test/popup/popup_from_infobar/background.html

Issue 6334101: Removal of chrome.experimental.popup set of APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <script>
2 var pass = chrome.test.callbackPass;
3
4 chrome.test.runTests([
5 function testShowsAndCanGetParent() {
6 chrome.tabs.getSelected(null, function(tab) {
7 chrome.experimental.infobars.show(
8 {tabId: tab.id, path:'in-infobar.html'});
9 });
10 // Flow continues in infobarCallback
11 }
12 ]);
13
14 function infobarCallback(showPopupFunc) {
15 showPopupFunc();
16 // Flow continues in popupCallback
17 }
18
19 function popupCallback(popupWindow, getFromParentFunc) {
20 getFromParentFunc();
21 var result = popupWindow.document.getElementById('target').innerText;
22 if (!result) {
23 chrome.test.fail('no result');
24 }
25 chrome.test.assertEq(result, '42');
26 chrome.test.notifyPass();
27 }
28
29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698