(label)
| 62 | }; |
| 63 | |
| 64 | function getLabelContent(label) { |
| 65 | var lines = label.selectAll('tspan.line'); |
| 66 | var content = []; |
| 67 | |
| 68 | function fill(sel) { |
| 69 | if(sel.node()) { |
| 70 | var html = sel.html(); |
| 71 | if(html) content.push(html); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | if(lines.size()) { |
| 76 | lines.each(function() { fill(d3Select(this)); }); |
| 77 | } else { |
| 78 | fill(label); |
| 79 | } |
| 80 | return content.join('\n'); |
| 81 | } |
| 82 | |
| 83 | function assertLabelContent(label, expectation, msg) { |
| 84 | if(!expectation) expectation = ''; |
no test coverage detected
searching dependent graphs…