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

Unified 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 side-by-side diff with in-line comments
Download patch
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 74331)
+++ 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>

Powered by Google App Engine
This is Rietveld 408576698