(spec, msg)
| 1382 | } |
| 1383 | |
| 1384 | function assertHoverLabels(spec, msg) { |
| 1385 | // spec is an array of [pos, text] |
| 1386 | // always check that the heads don't have hover effects |
| 1387 | // so we only have to explicitly include pos0-2 |
| 1388 | spec.push([pos0Head, '']); |
| 1389 | spec.push([pos2Head, '']); |
| 1390 | var p = new Promise(function(resolve) { |
| 1391 | setTimeout(resolve, HOVERMINTIME); |
| 1392 | }); |
| 1393 | spec.forEach(function(speci) { |
| 1394 | p = p.then(function() { |
| 1395 | return assertHoverLabel(speci[0], speci[1], |
| 1396 | msg ? msg + ' (' + speci + ')' : speci); |
| 1397 | }); |
| 1398 | }); |
| 1399 | return p; |
| 1400 | } |
| 1401 | |
| 1402 | makePlot([ |
| 1403 | {x: 50, y: 50, text: 'hi', width: 50, height: 40, ax: 0, ay: -40, xshift: -50, yshift: 50}, |
no test coverage detected
searching dependent graphs…