https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c642338c23cc660223a73948b9fdd1bc9cda13ed authored by Domenic Denicola on 02 April 2018, 19:26:38 UTC
Actually fix things
Tip revision: c642338
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