Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee

This commit is contained in:
WPT Sync Bot 2018-04-23 21:13:37 -04:00
parent c5f7c9ccf3
commit e891345f26
1328 changed files with 36632 additions and 20588 deletions

View file

@ -0,0 +1,14 @@
importScripts("/resources/testharness.js");
test(t => {
let seen = false;
const event = new Event("hi");
assert_equals(self.event, undefined);
self.addEventListener("hi", t.step_func(e => {
seen = true;
assert_equals(self.event, undefined);
assert_equals(e, event);
}));
self.dispatchEvent(event);
assert_true(seen);
}, "There's no self.event (that's why we call it window.event) in workers");
done();