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

Function _assertVisibleData

test/jasmine/tests/parcoords_test.js:704–718  ·  view source on GitHub ↗
(visible, msg)

Source from the content-addressed store, hash-verified

702 });
703
704 function _assertVisibleData(visible, msg) {
705 return function() {
706 var canvases = d3SelectAll('.gl-canvas');
707 expect(canvases.size()).toBe(3, msg);
708 canvases.each(function() {
709 var imageArray = readPixel(this, 0, 0, this.width, this.height);
710 var foundPixel = false;
711 var i = 0;
712 do {
713 foundPixel = foundPixel || imageArray[i++] !== 0;
714 } while(!foundPixel && i < imageArray.length);
715 expect(foundPixel).toBe(visible, msg + ' - ' + this.className);
716 });
717 };
718 }
719
720 it('@gl Calling `Plotly.restyle` with zero panels left should erase lines', function(done) {
721 var mockCopy = Lib.extendDeep({}, mock2);

Callers 1

parcoords_test.jsFile · 0.85

Calls 1

readPixelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…