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

Function assertMarkerColor

test/jasmine/tests/map_test.js:404–418  ·  view source on GitHub ↗
(expectations)

Source from the content-addressed store, hash-verified

402 });
403
404 function assertMarkerColor(expectations) {
405 return new Promise(function(resolve) {
406 setTimeout(function() {
407 var objs = getStyle(gd, 'circle', 'circle-color');
408
409 expectations.forEach(function(expected, i) {
410 var obj = objs[i];
411 var rgba = [obj.r, obj.g, obj.b, obj.a];
412 expect(rgba).toBeCloseToArray(expected);
413 });
414
415 resolve();
416 }, TRANSITION_DELAY);
417 });
418 }
419
420 assertMarkerColor([
421 [0.121, 0.466, 0.705, 1],

Callers 1

map_test.jsFile · 0.85

Calls 1

getStyleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…