blob: b84b50428a4b1f3cfcb4957bef1184c6f2f8811d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<div id="master"></div>
<iframe id="frame" src="resources/html-link-element-activation-behavior-on-mouse-click-step1.html"></iframe>
<script>
description("This tests html link element activation behavior on mouse click");
function start(){
frame.postMessage("mouse:click", "*");
}
function listener(event){
shouldBeEqualToString("event.data", "test:ok")
finishJSTest();
}
var frame = document.getElementById("frame").contentWindow;
window.addEventListener("message", listener);
frame.onload = start;
window.jsTestIsAsync = true;
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>