forked from facebook/react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add media events back to TestUtils.Simulate (facebook#12010)
The TestUtils lost media events when they were pulled out of the topLevelTypes constant. This commit adds them back by concatenating the media event keys to the list of top level types.
- Loading branch information
Showing
3 changed files
with
167 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
152 changes: 152 additions & 0 deletions
152
packages/react-dom/src/__tests__/__snapshots__/ReactTestUtils-test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ReactTestUtils Simulate should have locally attached media events 1`] = ` | ||
Array [ | ||
"abort", | ||
"animationEnd", | ||
"animationIteration", | ||
"animationStart", | ||
"beforeInput", | ||
"blur", | ||
"canPlay", | ||
"canPlayThrough", | ||
"cancel", | ||
"change", | ||
"click", | ||
"close", | ||
"compositionEnd", | ||
"compositionStart", | ||
"compositionUpdate", | ||
"contextMenu", | ||
"copy", | ||
"cut", | ||
"doubleClick", | ||
"drag", | ||
"dragEnd", | ||
"dragEnter", | ||
"dragExit", | ||
"dragLeave", | ||
"dragOver", | ||
"dragStart", | ||
"drop", | ||
"durationChange", | ||
"emptied", | ||
"encrypted", | ||
"ended", | ||
"error", | ||
"focus", | ||
"input", | ||
"invalid", | ||
"keyDown", | ||
"keyPress", | ||
"keyUp", | ||
"load", | ||
"loadStart", | ||
"loadedData", | ||
"loadedMetadata", | ||
"mouseDown", | ||
"mouseEnter", | ||
"mouseLeave", | ||
"mouseMove", | ||
"mouseOut", | ||
"mouseOver", | ||
"mouseUp", | ||
"paste", | ||
"pause", | ||
"play", | ||
"playing", | ||
"progress", | ||
"rateChange", | ||
"reset", | ||
"scroll", | ||
"seeked", | ||
"seeking", | ||
"select", | ||
"stalled", | ||
"submit", | ||
"suspend", | ||
"timeUpdate", | ||
"toggle", | ||
"touchCancel", | ||
"touchEnd", | ||
"touchMove", | ||
"touchStart", | ||
"transitionEnd", | ||
"volumeChange", | ||
"waiting", | ||
"wheel", | ||
] | ||
`; | ||
|
||
exports[`ReactTestUtils SimulateNative should have locally attached media events 1`] = ` | ||
Array [ | ||
"abort", | ||
"animationEnd", | ||
"animationIteration", | ||
"animationStart", | ||
"blur", | ||
"canPlay", | ||
"canPlayThrough", | ||
"cancel", | ||
"change", | ||
"click", | ||
"close", | ||
"compositionEnd", | ||
"compositionStart", | ||
"compositionUpdate", | ||
"contextMenu", | ||
"copy", | ||
"cut", | ||
"doubleClick", | ||
"drag", | ||
"dragEnd", | ||
"dragEnter", | ||
"dragExit", | ||
"dragLeave", | ||
"dragOver", | ||
"dragStart", | ||
"drop", | ||
"durationChange", | ||
"emptied", | ||
"encrypted", | ||
"ended", | ||
"error", | ||
"focus", | ||
"input", | ||
"keyDown", | ||
"keyPress", | ||
"keyUp", | ||
"load", | ||
"loadStart", | ||
"loadedData", | ||
"loadedMetadata", | ||
"mouseDown", | ||
"mouseMove", | ||
"mouseOut", | ||
"mouseOver", | ||
"mouseUp", | ||
"paste", | ||
"pause", | ||
"play", | ||
"playing", | ||
"progress", | ||
"rateChange", | ||
"scroll", | ||
"seeked", | ||
"seeking", | ||
"selectionChange", | ||
"stalled", | ||
"suspend", | ||
"textInput", | ||
"timeUpdate", | ||
"toggle", | ||
"touchCancel", | ||
"touchEnd", | ||
"touchMove", | ||
"touchStart", | ||
"transitionEnd", | ||
"volumeChange", | ||
"waiting", | ||
"wheel", | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters