(exp)
| 165 | var inds = traces.map(function(_, i) { return i; }); |
| 166 | |
| 167 | function _assert(exp) { |
| 168 | expect(d3SelectAll('g.smith').size()).toBe(exp.subplot, '# subplot layer'); |
| 169 | |
| 170 | var clipCnt = 0; |
| 171 | d3SelectAll('clipPath').each(function() { |
| 172 | if(/smith-for-traces/.test(this.id)) clipCnt++; |
| 173 | }); |
| 174 | expect(clipCnt).toBe(exp.clip, '# clip paths'); |
| 175 | } |
| 176 | |
| 177 | Plotly.newPlot(gd, fig).then(function() { |
| 178 | _assert({subplot: 1, clip: 1}); |
no test coverage detected
searching dependent graphs…