Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /eventsource/eventsource-onmessage-trusted.any.html - WPT Dashboard Interop Dashboard
- /eventsource/eventsource-onmessage-trusted.any.worker.html - WPT Dashboard Interop Dashboard
// 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");