26 lines
738 B
HTML
26 lines
738 B
HTML
<!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>
|