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

Function _checkSliceColors

test/jasmine/tests/pie_test.js:241–247  ·  view source on GitHub ↗
(colors)

Source from the content-addressed store, hash-verified

239 });
240
241 function _checkSliceColors(colors) {
242 return function() {
243 d3Select(gd).selectAll(SLICES_SELECTOR).each(function(d, i) {
244 expect(this.style.fill.replace(/(\s|rgb\(|\))/g, '')).toBe(colors[i], i);
245 });
246 };
247 }
248
249 function _checkFontColors(expFontColors) {
250 return function() {

Callers 1

pie_test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…