gecko-dev/testing/web-platform/tests/dom/nodes/Document-createEvent.js
Aryeh Gregor 82ee59d8c7 Bug 1388119 - Drop support for createEvent("ErrorEvent"/"PopStateEvent"); r=smaug
They were just dropped from the spec:

https://github.com/whatwg/dom/issues/362
https://github.com/whatwg/dom/pull/489

ErrorEvent we never supported anyway until it was added recently to
match the spec.  PopStateEvent is not supported by WebKit, Blink is
planning to try dropping support, our telemetry shows usage is
basically zero, and we never supported any way to initialize it anyway.

The changes to Document-createEvent.html and Document-createEvent.js are
taken from upstream.  The other wpt changes are new in this commit.

MozReview-Commit-ID: A6GzhLwL08l

--HG--
extra : rebase_source : 4bdcd605b179ea787985845e9b1c53f76ebc179a
2017-08-07 21:19:59 +03:00

23 lines
702 B
JavaScript

var aliases = {
"BeforeUnloadEvent": "BeforeUnloadEvent",
"CompositionEvent": "CompositionEvent",
"CustomEvent": "CustomEvent",
"DeviceMotionEvent": "DeviceMotionEvent",
"DeviceOrientationEvent": "DeviceOrientationEvent",
"DragEvent": "DragEvent",
"Event": "Event",
"Events": "Event",
"FocusEvent": "FocusEvent",
"HashChangeEvent": "HashChangeEvent",
"HTMLEvents": "Event",
"KeyboardEvent": "KeyboardEvent",
"MessageEvent": "MessageEvent",
"MouseEvent": "MouseEvent",
"MouseEvents": "MouseEvent",
"StorageEvent": "StorageEvent",
"SVGEvents": "Event",
"TextEvent": "CompositionEvent",
"TouchEvent": "TouchEvent",
"UIEvent": "UIEvent",
"UIEvents": "UIEvent",
};