(opts, layout)
| 52 | var fullData; |
| 53 | |
| 54 | function _supply(opts, layout) { |
| 55 | gd = {}; |
| 56 | opts = Array.isArray(opts) ? opts : [opts]; |
| 57 | |
| 58 | gd.data = opts.map(function (o) { |
| 59 | return Lib.extendFlat({ type: 'treemap' }, o || {}); |
| 60 | }); |
| 61 | gd.layout = layout || {}; |
| 62 | |
| 63 | supplyAllDefaults(gd); |
| 64 | fullData = gd._fullData; |
| 65 | } |
| 66 | |
| 67 | it('should set *visible:false* when *labels* or *parents* is missing', function () { |
| 68 | _supply([{ labels: [1], parents: [''] }, { labels: [1] }, { parents: [''] }]); |
no outgoing calls
no test coverage detected
searching dependent graphs…