iron-test-helpers
iron-test-helpers copied to clipboard
Add support for MockInteractions on touch-only devices
MockInteractions will fail to create any gestures on an iOS or Android device because Polymer Gestures do not listen for mouse events on those platforms.
MockInteractions should create touchevents in those instances.
@cdata Don't know if/when I can get around to this. Maybe a good first bug as well?
New in Chrome 48 are TouchEvent constructors: https://w3c.github.io/touch-events/#touchevent-interface, https://output.jsbin.com/lohuwa
Might have to fallback in other browsers to something like https://gist.github.com/basecss/8666646