diff options
author | Ms2ger <Ms2ger@gmail.com> | 2015-08-09 18:17:15 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2015-08-09 19:59:20 +0200 |
commit | ecb6551efa04a6469616630fba71e11978a52458 (patch) | |
tree | fb2444def77513ecebf8f2558f0c6a47fb87bef0 | |
parent | ecd3f4f80e6be555c70b7579fe464e814014df1c (diff) | |
download | servo-ecb6551efa04a6469616630fba71e11978a52458.tar.gz servo-ecb6551efa04a6469616630fba71e11978a52458.zip |
Add a test for following malformed hyperlinks.
-rw-r--r-- | tests/wpt/mozilla/meta/MANIFEST.json | 6 | ||||
-rw-r--r-- | tests/wpt/mozilla/meta/mozilla/follow-hyperlink.html.ini | 3 | ||||
-rw-r--r-- | tests/wpt/mozilla/tests/mozilla/follow-hyperlink.html | 17 |
3 files changed, 26 insertions, 0 deletions
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index c723119186e..d0b6512b141 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -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", diff --git a/tests/wpt/mozilla/meta/mozilla/follow-hyperlink.html.ini b/tests/wpt/mozilla/meta/mozilla/follow-hyperlink.html.ini new file mode 100644 index 00000000000..8e6e2200a5f --- /dev/null +++ b/tests/wpt/mozilla/meta/mozilla/follow-hyperlink.html.ini @@ -0,0 +1,3 @@ +[follow-hyperlink.html] + type: testharness + expected: CRASH diff --git a/tests/wpt/mozilla/tests/mozilla/follow-hyperlink.html b/tests/wpt/mozilla/tests/mozilla/follow-hyperlink.html new file mode 100644 index 00000000000..6ac9eaeb581 --- /dev/null +++ b/tests/wpt/mozilla/tests/mozilla/follow-hyperlink.html @@ -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> |