https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 241b7466fc5293f1a88ed084fed063a4b59cce09 authored by ElegantPig on 09 November 2013, 10:33:32 UTC
if the input type is color, its value cannot be empty string
Tip revision: 241b746
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.php")
        source.onmessage = function(e) {
          test.step(function() {
            assert_equals("data", e.data)
            source.close()
          })
          test.done()
        }
      })
    </script>
  </body>
</html>

back to top