MCPcopy
hub / github.com/plotly/plotly.js / run

Function run

test/jasmine/tests/scatterpolar_test.js:89–107  ·  view source on GitHub ↗
(specs)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

mouseEventFunction · 0.85

Tested by

no test coverage detected