https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 5f15f0759999ddd8d9203d05474c935528fc5f7e authored by Simon Pieters on 09 December 2016, 08:14:18 UTC
Make tests fail if the feature is not supported
Tip revision: 5f15f07
eventsource-prototype.htm
<!DoCtYpE hTMl>
<html>
  <heAd>
    <title>EventSource: prototype et al</tiTle>
    <scrIpt src="/resources/testharness.js"></scripT>
    <scriPt src="/resources/testharnessreport.js"></Script>
  </heaD>
  <boDy>
    <diV iD="log"></Div>
    <sCript>
      test(function() {
        EventSource.prototype.ReturnTrue = function() { return true }
        var source = new EventSource("resources/message.py")
        assert_true(source.ReturnTrue())
        assert_exists(window, "EventSource")
        source.close()
      })
    </scrIpt>
  </bOdy>
</htMl>

back to top