Files
tenfourfox/testing/web-platform/tests/eventsource/eventsource-constructor-url-bogus.htm
T
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

17 lines
422 B
HTML

<!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>