(editFlag)
| 265 | afterEach(destroyGraphDiv); |
| 266 | |
| 267 | function initPlot(editFlag) { |
| 268 | var edits = {}; |
| 269 | edits[editFlag] = true; |
| 270 | |
| 271 | return Plotly.newPlot(gd, [ |
| 272 | { x: [1, 2, 3], y: [1, 2, 3] }, |
| 273 | { x: [1, 2, 3], y: [3, 2, 1] } |
| 274 | ], { |
| 275 | width: 600, |
| 276 | height: 400, |
| 277 | annotations: [ |
| 278 | { text: 'testing', x: 1, y: 1, showarrow: true } |
| 279 | ] |
| 280 | }, { editable: false, edits: edits }); |
| 281 | } |
| 282 | |
| 283 | function checkIfEditable(elClass, text) { |
| 284 | return function() { |
no outgoing calls
no test coverage detected
searching dependent graphs…