mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Add a test for following malformed hyperlinks.
This commit is contained in:
parent
ecd3f4f80e
commit
ecb6551efa
3 changed files with 26 additions and 0 deletions
|
@ -539,6 +539,12 @@
|
||||||
"url": "/_mozilla/mozilla/focus_blur.html"
|
"url": "/_mozilla/mozilla/focus_blur.html"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"mozilla/follow-hyperlink.html": [
|
||||||
|
{
|
||||||
|
"path": "mozilla/follow-hyperlink.html",
|
||||||
|
"url": "/_mozilla/mozilla/follow-hyperlink.html"
|
||||||
|
}
|
||||||
|
],
|
||||||
"mozilla/getBoundingClientRect.html": [
|
"mozilla/getBoundingClientRect.html": [
|
||||||
{
|
{
|
||||||
"path": "mozilla/getBoundingClientRect.html",
|
"path": "mozilla/getBoundingClientRect.html",
|
||||||
|
|
3
tests/wpt/mozilla/meta/mozilla/follow-hyperlink.html.ini
Normal file
3
tests/wpt/mozilla/meta/mozilla/follow-hyperlink.html.ini
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[follow-hyperlink.html]
|
||||||
|
type: testharness
|
||||||
|
expected: CRASH
|
17
tests/wpt/mozilla/tests/mozilla/follow-hyperlink.html
Normal file
17
tests/wpt/mozilla/tests/mozilla/follow-hyperlink.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue