(px, py)
| 2275 | afterEach(destroyGraphDiv); |
| 2276 | |
| 2277 | function _hover(px, py) { |
| 2278 | return new Promise(function(resolve, reject) { |
| 2279 | gd.once('plotly_hover', function(d) { |
| 2280 | Lib.clearThrottle(); |
| 2281 | resolve(d); |
| 2282 | }); |
| 2283 | |
| 2284 | mouseEvent('mousemove', px, py); |
| 2285 | |
| 2286 | setTimeout(function() { |
| 2287 | reject('plotly_hover did not get called!'); |
| 2288 | }, 100); |
| 2289 | }); |
| 2290 | } |
| 2291 | |
| 2292 | it('should have correct content for *scatter* traces', function(done) { |
| 2293 | Plotly.newPlot(gd, [{ |
no test coverage detected
searching dependent graphs…