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

Function run

test/jasmine/tests/parcats_test.js:1690–1708  ·  view source on GitHub ↗
(s, done)

Source from the content-addressed store, hash-verified

1688 afterEach(destroyGraphDiv);
1689
1690 function run(s, done) {
1691 gd = createGraphDiv();
1692
1693 var fig = Lib.extendDeep({},
1694 s.mock || require('../../image/mocks/parcats_basic.json')
1695 );
1696 if(s.patch) fig = s.patch(fig);
1697
1698 return Plotly.newPlot(gd, fig).then(function() {
1699 mouseEvent('mousemove', s.pos[0], s.pos[1]);
1700 mouseEvent('mouseover', s.pos[0], s.pos[1]);
1701
1702 setTimeout(function() {
1703 assertHoverLabelContent(s);
1704 done();
1705 }, CALLBACK_DELAY);
1706 })
1707 .catch(failTest);
1708 }
1709
1710 var dimPos = [320, 310];
1711 var linePos = [272, 415];

Callers 1

parcats_test.jsFile · 0.70

Calls 2

mouseEventFunction · 0.85
doneFunction · 0.85

Tested by

no test coverage detected