diff options
Diffstat (limited to 'testing/web-platform/tests/eventsource/eventsource-onmessage-trusted.any.js')
-rw-r--r-- | testing/web-platform/tests/eventsource/eventsource-onmessage-trusted.any.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/eventsource/eventsource-onmessage-trusted.any.js b/testing/web-platform/tests/eventsource/eventsource-onmessage-trusted.any.js new file mode 100644 index 0000000000..d0be4d03e8 --- /dev/null +++ b/testing/web-platform/tests/eventsource/eventsource-onmessage-trusted.any.js @@ -0,0 +1,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"); |