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

Function run

test/jasmine/tests/box_test.js:720–738  ·  view source on GitHub ↗
(specs)

Source from the content-addressed store, hash-verified

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

Callers 1

box_test.jsFile · 0.70

Calls 1

mouseEventFunction · 0.85

Tested by

no test coverage detected