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

Function assertHoverLabels

test/jasmine/tests/annotations_test.js:1384–1400  ·  view source on GitHub ↗
(spec, msg)

Source from the content-addressed store, hash-verified

1382 }
1383
1384 function assertHoverLabels(spec, msg) {
1385 // spec is an array of [pos, text]
1386 // always check that the heads don't have hover effects
1387 // so we only have to explicitly include pos0-2
1388 spec.push([pos0Head, '']);
1389 spec.push([pos2Head, '']);
1390 var p = new Promise(function(resolve) {
1391 setTimeout(resolve, HOVERMINTIME);
1392 });
1393 spec.forEach(function(speci) {
1394 p = p.then(function() {
1395 return assertHoverLabel(speci[0], speci[1],
1396 msg ? msg + ' (' + speci + ')' : speci);
1397 });
1398 });
1399 return p;
1400 }
1401
1402 makePlot([
1403 {x: 50, y: 50, text: 'hi', width: 50, height: 40, ax: 0, ay: -40, xshift: -50, yshift: 50},

Callers 1

Calls 1

assertHoverLabelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…