diff options
Diffstat (limited to 'testing/web-platform/tests/webmessaging/MessageEvent-trusted.window.js')
-rw-r--r-- | testing/web-platform/tests/webmessaging/MessageEvent-trusted.window.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webmessaging/MessageEvent-trusted.window.js b/testing/web-platform/tests/webmessaging/MessageEvent-trusted.window.js new file mode 100644 index 0000000000..11cf48beed --- /dev/null +++ b/testing/web-platform/tests/webmessaging/MessageEvent-trusted.window.js @@ -0,0 +1,9 @@ +// META: title=MessagePort message events are trusted with window + +async_test(t => { + window.onmessage = t.step_func_done(e => { + assert_equals(e.isTrusted, true); + }); + + window.postMessage("ping", "*"); +}, "With window"); |