MCPcopy Create free account
hub / github.com/plotly/plotly.js / run

Function run

test/jasmine/tests/scatterpolargl_test.js:51–69  ·  view source on GitHub ↗
(specs)

Source from the content-addressed store, hash-verified

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',

Callers 1

Calls 1

mouseEventFunction · 0.85

Tested by

no test coverage detected