test: add WPT tests for dom/events
Following the comment https://github.com/nodejs/node/issues/40678#issuecomment-1128928389, I added WPT tests for dom/events. The files except test/wpt/status/dom/events.json
, test/wpt/test-events.js
were generated by git-node wpt dom/events
.
Currently, some tests are failed. Is it OK? or should I make some work for passing them? Many of them seem to fail due to lack of browser specific API like document is not undefined
.
Refs: #40678 (closed)