blob: 8e769ed712c51db64f32a07cee6b1c946d300b78 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>EventSource: constructor (invalid URL)</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<script>
test(function() {
assert_throws("SyntaxError", function() { new EventSource("http://this is invalid/") })
})
</script>
</body>
</html>