(opts)
| 895 | } |
| 896 | |
| 897 | function clickAndCheck(opts) { |
| 898 | return function() { |
| 899 | expect(Annotations.hasClickToShow(gd, hoverData(opts.newPts))) |
| 900 | .toBe(opts.newCTS, 'step: ' + opts.step); |
| 901 | |
| 902 | var clickResult = Annotations.onClick(gd, hoverData(opts.newPts)); |
| 903 | if(clickResult && clickResult.then) { |
| 904 | return clickResult.then(function() { checkVisible(opts); }); |
| 905 | } else { |
| 906 | checkVisible(opts); |
| 907 | } |
| 908 | }; |
| 909 | } |
| 910 | |
| 911 | function updateAndCheck(opts) { |
| 912 | return function() { |
no test coverage detected
searching dependent graphs…