Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
W3CPointerEvents: add unit test for JSPointerDispatcher (facebook#38114)
Summary: Pull Request resolved: facebook#38114 Changelog: [Android] [Internal] - W3CPointerEvents: add unit test for JSPointerDispatcher This adds a basic test for JSPointerDispatcher. Right now this asserts that when a MotionEvent with ACTION_DOWN is received, we send out a pointerdown event. There's a lot to be desired here in terms of e.g. ensuring that we're dispatching the event to the right target, which we can pursue as future work (of course, more complex test cases should also be added). I suspect we'll need to do a bit more refactoring to make this code more deeply testable (e.g. right now it's not straightforward to access Event properties from the test). Reviewed By: javache Differential Revision: D47035119 fbshipit-source-id: 1b49e2458325d6f0cc53d3b7ade8d6328141360f
- Loading branch information