mirror of
https://github.com/servo/servo.git
synced 2025-06-25 09:34:32 +01:00
18 lines
443 B
HTML
18 lines
443 B
HTML
<html>
|
|
<head>
|
|
<script src="./harness.js"></script>
|
|
<a id="foo" href="/nonexistent">test link</a>
|
|
<script>
|
|
var link = document.getElementById('foo');
|
|
link.addEventListener('click', function(ev) {
|
|
ev.preventDefault();
|
|
});
|
|
var ev = new Event('click', {bubbles: true, cancelable: true});
|
|
link.dispatchEvent(ev);
|
|
setTimeout(function() {
|
|
is(true, true, "load probably would have occurred by now");
|
|
finish();
|
|
}, 500);
|
|
</script>
|
|
</head>
|
|
</html>
|