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

Unified Diff: chrome/test/data/post_message.html

Issue 10831056: Port the render_view_host_manager_browsertest.cc to content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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/post_message.html
===================================================================
--- chrome/test/data/post_message.html (revision 148713)
+++ chrome/test/data/post_message.html (working copy)
@@ -1,29 +0,0 @@
-<html>
-
- <head><title>Post message tests</title>
- <script>
- // Send a message to our opener, and it will reply.
- function postToOpener(msg, origin) {
- window.opener.postMessage(msg, origin);
- return true;
- }
-
- // Send a message to a window named "foo".
- function postToFoo(msg) {
- var w = window.open("", "foo");
- w.postMessage(msg, "*");
- return true;
- }
-
- // Listen to incoming messages.
- var receivedMessages = 0;
- window.addEventListener("message", messageReceived, false);
- function messageReceived(event) {
- receivedMessages++;
- // Change the title to generate a notification.
- document.title = event.data;
- }
- </script>
- </head>
-
-</html>

Powered by Google App Engine
This is Rietveld 408576698