| Domenic Denicola | 0541620 | 2017-02-08 20:46:50 | [diff] [blame^] | 1 | <!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 | |
| 13 | async_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> |