(specs)
| 87 | afterEach(destroyGraphDiv); |
| 88 | |
| 89 | function run(specs) { |
| 90 | gd = createGraphDiv(); |
| 91 | |
| 92 | var fig = Lib.extendDeep( |
| 93 | {width: 700, height: 500}, |
| 94 | specs.mock || require('../../image/mocks/polar_scatter.json') |
| 95 | ); |
| 96 | |
| 97 | if(specs.patch) { |
| 98 | fig = specs.patch(fig); |
| 99 | } |
| 100 | |
| 101 | var pos = specs.pos || [200, 200]; |
| 102 | |
| 103 | return Plotly.newPlot(gd, fig).then(function() { |
| 104 | mouseEvent('mousemove', pos[0], pos[1]); |
| 105 | assertHoverLabelContent(specs); |
| 106 | }); |
| 107 | } |
| 108 | |
| 109 | [{ |
| 110 | desc: 'base', |
no test coverage detected