summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/eventsource/eventsource-onmessage-trusted.any.js
blob: d0be4d03e8b2862cba09f013b5921fe6c4a06e0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// META: title=EventSource message events are trusted

"use strict";

async_test(t => {
  const source = new EventSource("resources/message.py");

  source.onmessage = t.step_func_done(e => {
    source.close();
    assert_equals(e.isTrusted, true);
  });
}, "EventSource message events are trusted");