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

Function _assertNodes

test/jasmine/tests/scatter_test.js:839–853  ·  view source on GitHub ↗
(ptStyle, txContent)

Source from the content-addressed store, hash-verified

837 });
838
839 function _assertNodes(ptStyle, txContent) {
840 var pts = d3SelectAll('.point');
841 var txs = d3SelectAll('.textpoint');
842
843 expect(pts.size()).toEqual(ptStyle.length);
844 expect(txs.size()).toEqual(txContent.length);
845
846 pts.each(function(_, i) {
847 expect(this.style.fill).toEqual(ptStyle[i], 'pt ' + i);
848 });
849
850 txs.each(function(_, i) {
851 expect(d3Select(this).select('text').text()).toEqual(txContent[i], 'tx ' + i);
852 });
853 }
854
855 it('should smoothly add/remove nodes tags with *ids* during animations', function(done) {
856 Plotly.newPlot(gd, {

Callers 1

scatter_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…