dillon1000/react

Commit

Refactor SyntheticClipboardEvent tests to only use the public API (#11365)

* Refactor SyntheticClipboardEvent tests to only use the public API

* Replace local document creation by document body reset on each test case execution

* Set up and tear down container separately

* Tweak test assertion logic for clarity

* Remove simulate abstraction and create events directly

* Ensure the test covers IE8 behavior

* Verify that persistence works
Browse files
Changed paths1 file
First-parent comparison
M packages/react-dom/src/events/__tests__/SyntheticClipboardEvent-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…