Add a test for following malformed hyperlinks.

This commit is contained in:
Ms2ger 2015-08-09 18:17:15 +02:00
parent ecd3f4f80e
commit ecb6551efa
3 changed files with 26 additions and 0 deletions

View file

@ -539,6 +539,12 @@
"url": "/_mozilla/mozilla/focus_blur.html"
}
],
"mozilla/follow-hyperlink.html": [
{
"path": "mozilla/follow-hyperlink.html",
"url": "/_mozilla/mozilla/follow-hyperlink.html"
}
],
"mozilla/getBoundingClientRect.html": [
{
"path": "mozilla/getBoundingClientRect.html",

View file

@ -0,0 +1,3 @@
[follow-hyperlink.html]
type: testharness
expected: CRASH

View file

@ -0,0 +1,17 @@
<!doctype html>
<meta charset=utf-8>
<title>Following hyperlinks</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<p><a id=link href="http://:">test</a></p>
<script>
async_test(function(t) {
var a = document.getElementById("link");
a.click();
setTimeout(function() {
// Don't crash.
t.done();
}, 0);
});
</script>