| Index: chrome/test/data/extensions/api_test/popup/popup_from_infobar/background.html
|
| ===================================================================
|
| --- chrome/test/data/extensions/api_test/popup/popup_from_infobar/background.html (revision 74596)
|
| +++ chrome/test/data/extensions/api_test/popup/popup_from_infobar/background.html (working copy)
|
| @@ -1,29 +0,0 @@
|
| -<script>
|
| -var pass = chrome.test.callbackPass;
|
| -
|
| -chrome.test.runTests([
|
| - function testShowsAndCanGetParent() {
|
| - chrome.tabs.getSelected(null, function(tab) {
|
| - chrome.experimental.infobars.show(
|
| - {tabId: tab.id, path:'in-infobar.html'});
|
| - });
|
| - // Flow continues in infobarCallback
|
| - }
|
| -]);
|
| -
|
| -function infobarCallback(showPopupFunc) {
|
| - showPopupFunc();
|
| - // Flow continues in popupCallback
|
| -}
|
| -
|
| -function popupCallback(popupWindow, getFromParentFunc) {
|
| - getFromParentFunc();
|
| - var result = popupWindow.document.getElementById('target').innerText;
|
| - if (!result) {
|
| - chrome.test.fail('no result');
|
| - }
|
| - chrome.test.assertEq(result, '42');
|
| - chrome.test.notifyPass();
|
| -}
|
| -
|
| -</script>
|
|
|