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

Unified Diff: chrome/test/data/extensions/api_test/connect_external/connect.html

Issue 262016: Implement chrome.extension.connectExternal and fix various API inconsistencies. (Closed)
Patch Set: addressed comments Created 11 years, 2 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/connect_external/connect.html
diff --git a/chrome/test/data/extensions/api_test/connect_external/connect.html b/chrome/test/data/extensions/api_test/connect_external/connect.html
new file mode 100644
index 0000000000000000000000000000000000000000..cc9def80d9682083952e52208f22ff9a48f21d5a
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/connect_external/connect.html
@@ -0,0 +1,13 @@
+<script>
+var testId = "bjafgdebaacbbbecmhlhpofkepfkgcpa";
+
+function testConnectExternal() {
+ var port = chrome.extension.connect(testId, {name: "extern"});
+ port.postMessage({testConnectExternal: true});
+ port.onMessage.addListener(function(msg) {
+ var success = msg.success && msg.senderId == location.host;
+ window.domAutomationController.send(success);
+ port.disconnect();
+ });
+}
+</script>
« no previous file with comments | « chrome/renderer/user_script_slave.cc ('k') | chrome/test/data/extensions/api_test/connect_external/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698