diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-01-30 23:05:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-30 23:05:05 -0500 |
commit | 8a1cfaacb70bda3fe8bec693bc785a015bebea8f (patch) | |
tree | b4c3dcb43d70bb7aaec15c4f1acc308862e82941 /tests/wpt/web-platform-tests/workers/Worker-replace-global-constructor.any.js | |
parent | 65370f17c98225f7e71c72ea2e0cb2d0a81487f3 (diff) | |
parent | b56a3b8e69711d764d5ca0fe01fe6451ef9e4f74 (diff) | |
download | servo-8a1cfaacb70bda3fe8bec693bc785a015bebea8f.tar.gz servo-8a1cfaacb70bda3fe8bec693bc785a015bebea8f.zip |
Auto merge of #22789 - servo-wpt-sync:wpt_update_30-01-2019, r=jdm
Sync WPT with upstream (30-01-2019)
Automated downstream sync of changes from upstream as of 30-01-2019.
[no-wpt-sync]
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22789)
<!-- Reviewable:end -->
Diffstat (limited to 'tests/wpt/web-platform-tests/workers/Worker-replace-global-constructor.any.js')
-rw-r--r-- | tests/wpt/web-platform-tests/workers/Worker-replace-global-constructor.any.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/workers/Worker-replace-global-constructor.any.js b/tests/wpt/web-platform-tests/workers/Worker-replace-global-constructor.any.js new file mode 100644 index 00000000000..f208f373636 --- /dev/null +++ b/tests/wpt/web-platform-tests/workers/Worker-replace-global-constructor.any.js @@ -0,0 +1,9 @@ +// META: global=!default,worker +test(() => { + try { + self.MessageEvent = 'PASS'; + assert_equals(self.MessageEvent, 'PASS'); + } catch (ex) { + assert_unreached("FAIL: unexpected exception (" + ex + ") received while replacing global constructor MessageEvent."); + } +}, 'Test replacing global constructors in a worker context.'); |