(pos, fig, content)
| 701 | afterEach(destroyGraphDiv); |
| 702 | |
| 703 | function run(pos, fig, content) { |
| 704 | gd = createGraphDiv(); |
| 705 | |
| 706 | return Plotly.newPlot(gd, fig).then(function() { |
| 707 | mouseEvent('mousemove', pos[0], pos[1]); |
| 708 | assertHoverLabelContent({ |
| 709 | nums: content[0].join('\n'), |
| 710 | name: content[1] |
| 711 | }); |
| 712 | }); |
| 713 | } |
| 714 | |
| 715 | it('should generate hover label (base)', function(done) { |
| 716 | var fig = Lib.extendDeep({}, require('../../image/mocks/scattercarpet.json')); |
no test coverage detected