Commit 66e905bc authored by sigbjornf's avatar sigbjornf Committed by Commit bot

PostMessageTest: retire use of zero-argument port.postMessage().

In testPostUnsupportedWebMessageToApp, avoid invoking postMessage()
without any arguments. At least one is required for
MessagePort.postMessage().

R=sgurun@chromium.org
BUG=339441

Review URL: https://codereview.chromium.org/1003603004

Cr-Commit-Position: refs/heads/master@{#321855}
parent 4672257a
...@@ -1031,7 +1031,6 @@ public class PostMessageTest extends AwTestBase { ...@@ -1031,7 +1031,6 @@ public class PostMessageTest extends AwTestBase {
+ " <script>" + " <script>"
+ " onmessage = function (e) {" + " onmessage = function (e) {"
+ " e.source.postMessage('" + HELLO + "', '*');" + " e.source.postMessage('" + HELLO + "', '*');"
+ " e.ports[0].postMessage();"
+ " e.ports[0].postMessage(null);" + " e.ports[0].postMessage(null);"
+ " e.ports[0].postMessage(undefined);" + " e.ports[0].postMessage(undefined);"
+ " e.ports[0].postMessage(NaN);" + " e.ports[0].postMessage(NaN);"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment