(fig)
| 212 | afterEach(destroyGraphDiv); |
| 213 | |
| 214 | function _plot(fig) { |
| 215 | return Plotly.newPlot(gd, fig).then(function() { |
| 216 | eventNames.forEach(function(k) { |
| 217 | eventCnts[k] = 0; |
| 218 | gd.on(k, function(d) { |
| 219 | eventData = d; |
| 220 | eventCnts[k]++; |
| 221 | Lib.clearThrottle(); |
| 222 | }); |
| 223 | }); |
| 224 | }); |
| 225 | } |
| 226 | |
| 227 | function assertEventPointData(expected, msg) { |
| 228 | var actual = eventData.points || []; |
no outgoing calls
no test coverage detected
searching dependent graphs…