blob: d5b9c7e82b1611c4f7cd334b11f0a06e88f2c085 [file] [log] [blame]
<!doctype html>
<meta charset=utf-8>
<title></title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
test(function() {
let es = new EventSource("");
assert_equals(es.url, document.documentURI,
"Passing empty string to the EventSource constructor shouldn't throw.");
es.close();
}, "Passing empty string to the EventSource constructor");
</script>