(testCase, doneFn)
| 706 | }); |
| 707 | |
| 708 | function _run(testCase, doneFn) { |
| 709 | _newPlot(gd, testCase.mock.data, testCase.mock.layout, testCase.mock.config) |
| 710 | .then(function() { |
| 711 | return _immediateClickPt(testCase); |
| 712 | }) |
| 713 | .then(function() { |
| 714 | assertSelectedPoints(testCase.expectedPts); |
| 715 | return Plotly.relayout(gd, 'dragmode', 'lasso'); |
| 716 | }) |
| 717 | .then(function() { |
| 718 | _clickPt(testCase); |
| 719 | return deselectPromise; |
| 720 | }) |
| 721 | .then(function() { |
| 722 | assertSelectionCleared(); |
| 723 | return _clickPt(testCase); |
| 724 | }) |
| 725 | .then(function() { |
| 726 | assertSelectedPoints(testCase.expectedPts); |
| 727 | }) |
| 728 | .then(doneFn, doneFn.fail); |
| 729 | } |
| 730 | }); |
| 731 | |
| 732 | it('should maintain style of errorbars after double click cleared selection (bar case)', function(done) { |
no test coverage detected
searching dependent graphs…