mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -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();
|
Loading…
Add table
Add a link
Reference in a new issue