https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c77d6e6ae0395fc6d534ad051dca119a775701f2 authored by Joanmarie Diggs on 10 April 2018, 15:51:52 UTC
accname: Updated tests
Tip revision: c77d6e6
eventsource-constructor-url-bogus.htm
<!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>
back to top