MCPcopy Index your code
hub / github.com/plotly/plotly.js / assertAnnotationText

Function assertAnnotationText

test/jasmine/tests/gl3d_plot_interact_test.js:1605–1614  ·  view source on GitHub ↗
(expectations, msg)

Source from the content-addressed store, hash-verified

1603 });
1604
1605 function assertAnnotationText(expectations, msg) {
1606 var anns = d3SelectAll('g.annotation-text-g');
1607
1608 expect(anns.size()).toBe(expectations.length, msg);
1609
1610 anns.each(function(_, i) {
1611 var tx = d3Select(this).select('text').text();
1612 expect(tx).toEqual(expectations[i], msg + ' - ann ' + i);
1613 });
1614 }
1615
1616 function assertAnnotationsXY(expectations, msg) {
1617 var TOL = 2.5;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…