(subplotsSVG, subplotsGL2D, msg)
| 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"]', |
no outgoing calls
no test coverage detected
searching dependent graphs…