(msg, exp)
| 869 | } |
| 870 | |
| 871 | function assertAxesDrawCalls(msg, exp) { |
| 872 | var cnt = 0; |
| 873 | exp.forEach(function(expi) { |
| 874 | var axNames = expi[0]; |
| 875 | var opts = expi[2] || {}; |
| 876 | axNames.forEach(function() { |
| 877 | if(!opts.noChange) { |
| 878 | cnt++; |
| 879 | // called twice as many times on drag: |
| 880 | // - once per axis during mousemouve |
| 881 | // - once per axis on mouseup |
| 882 | if(opts.dragged) cnt++; |
| 883 | } |
| 884 | }); |
| 885 | }); |
| 886 | |
| 887 | expect(Axes.drawOne).toHaveBeenCalledTimes(cnt); |
| 888 | Axes.drawOne.calls.reset(); |
| 889 | } |
| 890 | |
| 891 | function assertSubplotTranslateAndScale(msg, spIds, trans, scale) { |
| 892 | var gClips = d3Select(gd).select('g.clips'); |
no outgoing calls
no test coverage detected
searching dependent graphs…