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

Side by Side Diff: chrome/test/data/extensions/api_test/all_urls/execute_script/background.html

Issue 8729014: Move a bunch of extension API 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!-- 1 <!--
2 * Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this 2 * Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this
3 * source code is governed by a BSD-style license that can be found in the 3 * source code is governed by a BSD-style license that can be found in the
4 * LICENSE file. 4 * LICENSE file.
5 --> 5 -->
6 <html> 6 <script src="background.js"></script>
7 <head>
8 <script>
9 chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
10 chrome.tabs.executeScript(tabId, {file: "execute_script.js"});
11 });
12
13 chrome.extension.onRequest.addListener(
14 function(request, sender, sendResponse) {
15 // Let the extension know where the script ran.
16 var url = sender.tab ? sender.tab.url : 'about:blank';
17 chrome.test.sendMessage('execute: ' + url);
18 });
19 </script>
20 </head>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698