summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/eventsource/eventsource-url.any.js
blob: 92207ea78a1423400bdd0dfd3780cc1fe42c4dd9 (plain)
1
2
3
4
5
6
7
8
// META: title=EventSource: url

      test(function() {
        var url = "resources/message.py",
            source = new EventSource(url)
        assert_equals(source.url.substr(-(url.length)), url)
        source.close()
      })