(specs)
| 49 | }); |
| 50 | |
| 51 | function run(specs) { |
| 52 | gd = createGraphDiv(); |
| 53 | |
| 54 | var fig = Lib.extendDeep( |
| 55 | {width: 700, height: 500}, |
| 56 | specs.mock || require('../../image/mocks/glpolar_scatter.json') |
| 57 | ); |
| 58 | |
| 59 | if(specs.patch) { |
| 60 | fig = specs.patch(fig); |
| 61 | } |
| 62 | |
| 63 | var pos = specs.pos || [200, 200]; |
| 64 | |
| 65 | return Plotly.newPlot(gd, fig).then(function() { |
| 66 | mouseEvent('mousemove', pos[0], pos[1]); |
| 67 | assertHoverLabelContent(specs); |
| 68 | }); |
| 69 | } |
| 70 | |
| 71 | [{ |
| 72 | desc: 'base', |
no test coverage detected