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

Function assertLegendStyle

test/jasmine/tests/legend_test.js:1288–1294  ·  view source on GitHub ↗
(bgColor, borderColor, borderWidth)

Source from the content-addressed store, hash-verified

1286 var mockCopy = Lib.extendDeep({}, require('../../image/mocks/0.json'));
1287
1288 function assertLegendStyle(bgColor, borderColor, borderWidth) {
1289 var node = d3Select('g.legend').select('rect').node();
1290
1291 expect(node.style.fill).toEqual(bgColor);
1292 expect(node.style.stroke).toEqual(borderColor);
1293 expect(node.style.strokeWidth).toEqual(borderWidth + 'px');
1294 }
1295
1296 Plotly.newPlot(gd, mockCopy.data, mockCopy.layout)
1297 .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…