dillon1000/react

Commit

Rewrite SyntheticWheelEvent-test depending on internal API (#11299) (#11367)

* Update SyntheticWheelEvent tests to use public API

* Replace: ReactTestUtils.SimulateNative to native Events()

* Update: Replaced WheelEvent() interface to document.createEvent

* Fix: Lint SyntheticWheelEvent file

* Update: Custom WheelEvent function to a generic MouseEvent function

* Update: Prettier SyntheticWheelEvent-test.js

* Verify the `button` property is set on synthetic event

* Use MouseEvent constructor over custom helper

* Rewrite to test React rather than jsdom

* Force the .srcElement code path to execute

* Style tweaks and slight code reorganization
Browse files
Changed paths1 file
First-parent comparison
M packages/react-dom/src/events/__tests__/SyntheticWheelEvent-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…