(target, type, x, y)
| 52 | assert(other, 'fixture must have multiple selectable nodes'); |
| 53 | function selectOther() { picker.value = other.value; picker.dispatchEvent(new Event('change')); } |
| 54 | function mouse(target, type, x, y) { |
| 55 | target.dispatchEvent(new MouseEvent(type, {clientX: x, clientY: y, bubbles: true, view: window, button: 0})); |
| 56 | } |
| 57 | selectOther(); |
| 58 | mouse(canvas, 'mousedown', point[0], point[1]); |
| 59 | mouse(window, 'mouseup', point[0], point[1]); |