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

Function assertCartesian

test/jasmine/tests/plots_test.js:845–864  ·  view source on GitHub ↗
(subplotsSVG, subplotsGL2D, msg)

Source from the content-addressed store, hash-verified

843 afterEach(destroyGraphDiv);
844
845 function assertCartesian(subplotsSVG, subplotsGL2D, msg) {
846 var subplotsAll = subplotsSVG.concat(subplotsGL2D);
847 var subplots3 = d3Select(gd).selectAll('.cartesianlayer .subplot');
848 expect(subplots3.size()).toBe(subplotsAll.length, msg);
849
850 subplotsAll.forEach(function(subplot) {
851 expect(d3Select(gd).selectAll('.cartesianlayer .subplot.' + subplot).size())
852 .toBe(1, msg + ' - ' + subplot);
853 });
854
855 subplotsSVG.forEach(function(subplot) {
856 expect((gd._fullLayout._plots[subplot] || {})._scene2d)
857 .toBeUndefined(msg + ' - cartesian ' + subplot);
858 });
859
860 subplotsGL2D.forEach(function(subplot) {
861 expect((gd._fullLayout._plots[subplot] || {})._scene2d)
862 .toBeDefined(msg + ' - gl2d ' + subplot);
863 });
864 }
865
866 var subplotSelectors = {
867 gl3d: '.gl-container>div[id^="scene"]',

Callers 1

assertSubplotsFunction · 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…