Revision 093301141fb89d5f7531fe62df98d8d63e55320d authored by Emilio Cobos Álvarez on 07 March 2018, 01:57:02 UTC, committed by GitHub on 07 March 2018, 01:57:02 UTC
2 parent s 82bf967 + 9922d5c
Raw File
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