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

Function _assert

test/jasmine/tests/scatter_test.js:1000–1008  ·  view source on GitHub ↗
(colors, sizes)

Source from the content-addressed store, hash-verified

998
999 it('should work with typed arrays', function(done) {
1000 function _assert(colors, sizes) {
1001 var pts = d3SelectAll('.point');
1002 expect(pts.size()).toBe(3, '# of pts');
1003
1004 pts.each(function(_, i) {
1005 expect(getColor(this)).toBe(colors[i], 'color ' + i);
1006 expect(getMarkerSize(this)).toBe(sizes[i], 'size ' + i);
1007 });
1008 }
1009
1010 Plotly.newPlot(gd, [{
1011 x: new Float32Array([1, 2, 3]),

Callers 1

scatter_test.jsFile · 0.70

Calls 3

getColorFunction · 0.85
getMarkerSizeFunction · 0.85
_assertClipFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…