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

Unified Diff: chrome/test/data/extensions/api_test/window_open/popup_blocking/extension/background.html

Issue 8775046: Convert another batch of extension tests to manifest_version 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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/window_open/popup_blocking/extension/background.html
===================================================================
--- chrome/test/data/extensions/api_test/window_open/popup_blocking/extension/background.html (revision 112565)
+++ chrome/test/data/extensions/api_test/window_open/popup_blocking/extension/background.html (working copy)
@@ -1,32 +1,7 @@
<!--
-Copyright (c) 2010 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.
+ * Copyright (c) 2011 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.
-->
-
<script src="pop.js"></script>
-<script>
-
-function buildUrl(host, port) {
- return ("http://HOST:PORT/files/extensions/api_test/window_open/" +
- "popup_blocking/extension/foo.html")
- .replace(/HOST/, host).replace(/PORT/, port);
-}
-
-chrome.test.getConfig(function(config) {
- var popupURL = buildUrl("a.com", config.testServer.port);
- var webPageURL = buildUrl("b.com", config.testServer.port);
-
- // Open a popup and a tab from the background page.
- pop(popupURL);
-
- // Open a popup and a tab from a tab (tabs don't use ExtensionHost, so it's
- // interesting to test them separately).
- chrome.tabs.create({url: "tab.html", index: 1});
-
- // Open a tab to a URL that will cause our content script to run. The content
- // script will open a popup and a tab.
- chrome.tabs.create({url: webPageURL, index: 2});
-});
-
-</script>
+<script src="background.js"></script>

Powered by Google App Engine
This is Rietveld 408576698