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

Function assertTraceToggleRect

test/jasmine/tests/legend_test.js:1597–1610  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1595 }
1596
1597 function assertTraceToggleRect() {
1598 var nodes = d3SelectAll('rect.legendtoggle');
1599
1600 nodes.each(function () {
1601 var node = d3Select(this);
1602
1603 expect(node.attr('x')).toEqual('0');
1604 expect(node.attr('y')).toEqual('-9.5');
1605 expect(node.attr('height')).toEqual('19');
1606
1607 var w = +node.attr('width');
1608 expect(w).toBeWithin(113, 10);
1609 });
1610 }
1611
1612 Plotly.newPlot(gd, mockCopy.data, mockCopy.layout)
1613 .then(function () {

Callers 1

legend_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…