summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/eventsource/eventsource-prototype.any.js
blob: b7aefb32f44accbc24c86c0f02ac96c82edf0276 (plain)
1
2
3
4
5
6
7
8
9
10
// META: title=EventSource: prototype et al

      test(function() {
        EventSource.prototype.ReturnTrue = function() { return true }
        var source = new EventSource("resources/message.py")
        assert_true(source.ReturnTrue())
        assert_own_property(self, "EventSource")
        source.close()
      })