chromium/third_party/blink/renderer/core/testing/data/postmessage_test.html

<html>
<head>
<title>PostMessage Test</title>
<script>
var messagesReceived = 0;
window.addEventListener("message", messageReceived, false);
function messageReceived(event) {
  messagesReceived++;
  document.body.appendChild(document.createTextNode('Message ' + messagesReceived + '.'));
}
</script>
</head>
<body>
Test page.
</body>
</html>