https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ef8e988d1fa60461cb2275fa85542309a05bf04b authored by Mike Pennisi on 03 April 2018, 22:15:29 UTC
Correct reference to certificate file
Tip revision: ef8e988
eventsource-url.htm
<!DOCTYPE html>
<html>
  <head>
    <title>EventSource: url</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
  </head>
  <body>
    <div id="log"></div>
    <script>
      test(function() {
        var url = "resources/message.py",
            source = new EventSource(url)
        assert_equals(source.url.substr(-(url.length)), url)
        source.close()
      })
    </script>
  </body>
</html>

back to top