blob: b2071da54f723474b7599080831ca563d3ec019e [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-element-click-step1.html"></iframe>
<script>
description("This tests that html link element has no activation behavior on DOM click.");
function start(){
frame.postMessage("element: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>