(p0, p1, cb)
| 1413 | } |
| 1414 | |
| 1415 | function _drag(p0, p1, cb) { |
| 1416 | var promise = _mouseEvent('mousemove', p0, noop).then(function() { |
| 1417 | return _mouseEvent('mousedown', p0, noop); |
| 1418 | }).then(function() { |
| 1419 | return _mouseEvent('mousemove', p1, noop); |
| 1420 | }).then(function() { |
| 1421 | // repeat mousemove to simulate long dragging motion |
| 1422 | return _mouseEvent('mousemove', p1, noop); |
| 1423 | }).then(function() { |
| 1424 | return _mouseEvent('mouseup', p1, noop); |
| 1425 | }).then(function() { |
| 1426 | return _mouseEvent('mouseup', p1, noop); |
| 1427 | }).then(cb); |
| 1428 | |
| 1429 | return promise; |
| 1430 | } |
| 1431 | }); |
| 1432 | |
| 1433 | describe('map react', function() { |
no test coverage detected
searching dependent graphs…