summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/data/extensions')
-rw-r--r--chrome/test/data/extensions/ui/browser_action_popup/manifest.json9
-rw-r--r--chrome/test/data/extensions/ui/browser_action_popup/popup.html7
-rw-r--r--chrome/test/data/extensions/ui/browser_action_popup/popup.js5
3 files changed, 21 insertions, 0 deletions
diff --git a/chrome/test/data/extensions/ui/browser_action_popup/manifest.json b/chrome/test/data/extensions/ui/browser_action_popup/manifest.json
new file mode 100644
index 0000000..9669f94
--- /dev/null
+++ b/chrome/test/data/extensions/ui/browser_action_popup/manifest.json
@@ -0,0 +1,9 @@
+{
+ "name": "Browser Action Popup",
+ "description": "An extension with a popup that sends a message on opening",
+ "manifest_version": 2,
+ "version": "0.1",
+ "browser_action": {
+ "default_popup": "popup.html"
+ }
+}
diff --git a/chrome/test/data/extensions/ui/browser_action_popup/popup.html b/chrome/test/data/extensions/ui/browser_action_popup/popup.html
new file mode 100644
index 0000000..4c6566e
--- /dev/null
+++ b/chrome/test/data/extensions/ui/browser_action_popup/popup.html
@@ -0,0 +1,7 @@
+<!doctype html>
+<head>
+<script src="popup.js"></script>
+</head>
+<html>
+This is a popup
+</html>
diff --git a/chrome/test/data/extensions/ui/browser_action_popup/popup.js b/chrome/test/data/extensions/ui/browser_action_popup/popup.js
new file mode 100644
index 0000000..d483fac
--- /dev/null
+++ b/chrome/test/data/extensions/ui/browser_action_popup/popup.js
@@ -0,0 +1,5 @@
+// Copyright 2015 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.
+
+chrome.test.sendMessage('Popup opened');