blob: 246dc3df3024235b7150f5cd368c3c9708758ccf [file] [log] [blame]
<!DOCTYPE html>
<body>
<script src="../../../../resources/js-test-pre.js"></script>
<script>
jsTestIsAsync = true;
window.onmessage = function(e) {
debug("* Child received message " + e.data + " from parent");
messageEvent = e;
shouldBe("messageEvent.source", "parent");
debug("* Sending message " + (e.data + 1) + " to parent");
messageEvent.source.postMessage(e.data + 1, "*");
}
</script>
<script src="../../../../resources/js-test-post.js"></script>
</body>