https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 71c2e79627a84b288e55af0a86375c7c97b665b9 authored by Brad Werth on 04 April 2018, 18:08:08 UTC
Part 4: Add a web-platform test of getBoxQuads on block and flex boxes with auto margins.
Tip revision: 71c2e79
eventsource-onmessage.htm
<!DOCTYPE html>
<html>
  <head>
    <title>EventSource: onmessage</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
  </head>
  <body>
    <div id="log"></div>
    <script>
      var test = async_test()
      test.step(function() {
        var source = new EventSource("resources/message.py")
        source.onmessage = function(e) {
          test.step(function() {
            assert_equals("data", e.data)
            source.close()
          })
          test.done()
        }
      })
    </script>
  </body>
</html>

back to top