+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/content/console/5135/issue5135.html b/tests/content/console/5135/issue5135.html
new file mode 100644
index 0000000000..71be641e02
--- /dev/null
+++ b/tests/content/console/5135/issue5135.html
@@ -0,0 +1,48 @@
+
+
+
+ Issue 5135: Display window.postMessage() calls in console
+
+
+
+
+
+
+
Issue 5135:
+ Display window.postMessage() calls in console
+
+
+
+
Steps to follow
+
+
Open Firebug, enable the Console and Script panels and reload.
+
Monitor "message" events sent to iframe on this page by
+ executing this expression on the command line:
+ monitorEvents($("iframe").contentWindow, "message")
+
You can modify a message send to the iframe:
+
+
Click this button to send the message to the iframe:
+
+
+
The Console panel should display an info about the message
+ message origin=http://legoas, data=test » Window iframe.html
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/content/console/5135/issue5135.js b/tests/content/console/5135/issue5135.js
new file mode 100644
index 0000000000..d6e650bcb6
--- /dev/null
+++ b/tests/content/console/5135/issue5135.js
@@ -0,0 +1,25 @@
+function runTest()
+{
+ FBTest.sysout("issue5135.START");
+ FBTest.openNewTab(basePath + "console/5135/issue5135.html", function(win)
+ {
+ FBTest.openFirebug();
+ FBTest.enableConsolePanel(function(win)
+ {
+ FBTest.selectPanel("console");
+ FBTest.executeCommand("monitorEvents($('iframe').contentWindow, 'message')");
+ FBTest.clearConsole();
+
+ var config = {tagName: "div", classes: "logRow"};
+ FBTest.waitForDisplayedElement("console", config, function(row)
+ {
+ var expected = "message origin=http://legoas, data=test » Window iframe.html";
+ FBTest.compare(expected, row.textContent, "The proper message must be displayed.");
+ FBTest.testDone("issue5135.DONE");
+ });
+
+ // Execute test implemented on the test page.
+ FBTest.click(win.document.getElementById("testButton"));
+ });
+ });
+}
diff --git a/tests/content/firebug.html b/tests/content/firebug.html
index dfa084f3c4..30a72b7b46 100644
--- a/tests/content/firebug.html
+++ b/tests/content/firebug.html
@@ -116,6 +116,7 @@
{group: "console", uri: "console/5382/issue5382.js", desc: "Console.log display bug with nested arrays", testPage: "console/5382/issue5382.html"},
{group: "console", uri: "console/3663/issue3663.js", desc: "too much recursion when logging array contains itself", testPage: "console/3663/issue3663.html"},
{group: "console", uri: "console/5655/issue5655.js", desc: "console panel width empty elements", testPage: "console/5655/issue5655.html"},
+ {group: "console", uri: "console/5135/issue5135.js", desc: " Display window.postMessage() calls in console", testPage: "console/5135/issue5135.html"},
{group: "console/spy", uri: "console/spy/2285/issue2285.js", desc: "support for content-type: multipart/x-mixed-replace", testPage: "console/spy/2285/issue2285.html" },
//{group: "console/spy", uri: "console/spy/2462/issue2462.js", desc: "The firebug console still shows the xhr in progress if you abort it (via request.abort()) ", testPage: "console/spy/2462/issue2462.html" },
{group: "console/spy", uri: "console/spy/2712/issue2712.js", desc: "Gmail has network connections that report 200 Aborted", testPage: "console/spy/2712/issue2712.html" },