summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/eventsource/format-field-event-empty.any.js
blob: ada8e5725feb3c2188e24b2a286285c5ea746b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// META: title=EventSource: empty "event" field
      var test = async_test()
      test.step(function() {
        var source = new EventSource("resources/message.py?message=event%3A%20%0Adata%3Adata")
        source.onmessage = function(e) {
          test.step(function() {
            assert_equals("data", e.data)
            this.close()
          }, this)
          test.done()
        }
      })