(specs)
| 718 | afterEach(destroyGraphDiv); |
| 719 | |
| 720 | function run(specs) { |
| 721 | gd = createGraphDiv(); |
| 722 | |
| 723 | var fig = Lib.extendDeep( |
| 724 | {width: 700, height: 500}, |
| 725 | specs.mock || require('../../image/mocks/box_grouped.json') |
| 726 | ); |
| 727 | |
| 728 | if(specs.patch) { |
| 729 | fig = specs.patch(fig); |
| 730 | } |
| 731 | |
| 732 | var pos = specs.pos || [200, 200]; |
| 733 | |
| 734 | return Plotly.newPlot(gd, fig).then(function() { |
| 735 | mouseEvent('mousemove', pos[0], pos[1]); |
| 736 | assertHoverLabelContent(specs, specs.desc); |
| 737 | }); |
| 738 | } |
| 739 | |
| 740 | [{ |
| 741 | desc: 'base', |