(touchStrategy, touches)
| 488 | } |
| 489 | |
| 490 | function createTouchList(touchStrategy, touches) { |
| 491 | switch (touchStrategy) { |
| 492 | case bot.events.TouchEventStrategy_.MOUSE_EVENTS: |
| 493 | return createGenericTouchList(touches); |
| 494 | case bot.events.TouchEventStrategy_.INIT_TOUCH_EVENT: |
| 495 | return createNativeTouchList(touches); |
| 496 | case bot.events.TouchEventStrategy_.TOUCH_EVENT_CTOR: |
| 497 | return createTouchEventTouchList(touches); |
| 498 | } |
| 499 | return null; |
| 500 | } |
| 501 | |
| 502 | // TODO(juangj): Always use the TouchEvent constructor, if available. |
| 503 | var strategy; |
no test coverage detected