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

Function clickAt

test/jasmine/tests/legend_test.js:2042–2052  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

2040
2041 // we need to click on the drag cover to truly test this,
2042 function clickAt(p) {
2043 return function () {
2044 return new Promise(function (resolve) {
2045 var el = d3Select('g.legend').node();
2046 var opts = { element: el };
2047 mouseEvent('mousedown', p[0], p[1], opts);
2048 mouseEvent('mouseup', p[0], p[1], opts);
2049 setTimeout(resolve, DBLCLICKDELAY + 20);
2050 });
2051 };
2052 }
2053
2054 function assertVisible(expectation) {
2055 return function () {

Callers 1

legend_test.jsFile · 0.85

Calls 1

mouseEventFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…