Created
October 11, 2014 14:06
-
-
Save diorahman/b1c2da24d44da2648c36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="../../resources/js-test-pre.js"></script> | |
</head> | |
<body> | |
<link id="target"> | |
<script> | |
description("This tests html link element activation behavior when url is null"); | |
function notNavigatedAnywhere(){ | |
if (window.testRunner) | |
testRunner.notifyDone(); | |
} | |
var mouseEvent = new MouseEvent("click"); | |
var target = document.getElementById("target"); | |
shouldBe("target.dispatchEvent(mouseEvent)", "true"); | |
setTimeout(notNavigatedAnywhere, 100); | |
if (window.testRunner) | |
testRunner.waitUntilDone(); | |
</script> | |
<script src="../../resources/js-test-post.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment