MCPcopy Index your code
hub / github.com/plotly/plotly.js / run

Function run

test/jasmine/tests/carpet_test.js:703–713  ·  view source on GitHub ↗
(pos, fig, content)

Source from the content-addressed store, hash-verified

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'));

Callers 1

carpet_test.jsFile · 0.70

Calls 1

mouseEventFunction · 0.85

Tested by

no test coverage detected