blob: c3f012b2ca1c2086c57316b743a51ef0376af971 [file] [log] [blame]
Domenic Denicola05416202017-02-08 20:46:501<!DOCTYPE html>
2<title>EventSource message events are trusted</title>
3<script src="/resources/testharness.js"></script>
4<script src="/resources/testharnessreport.js"></script>
5<link rel="help" href="https://html.spec.whatwg.org/multipage/comms.html#dispatchMessage">
6<!-- See also:
7- https://github.com/whatwg/html/pull/1935
8-->
9
10<script>
11"use strict";
12
13async_test(t => {
14 const source = new EventSource("resources/message.py");
15
16 source.onmessage = t.step_func_done(e => {
17 source.close();
18 assert_equals(e.isTrusted, true);
19 });
20}, "EventSource message events are trusted");
21</script>