https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 49b64da5a558272a9b02b4b3723b4bf9bdfb5919 authored by Anne van Kesteren on 21 October 2016, 14:40:51 UTC
Add tests for disconnected checkbox/radio/form
Tip revision: 49b64da
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