(msg, exp)
| 954 | }; |
| 955 | |
| 956 | function _assert(msg, exp) { |
| 957 | var fullLayout = gd._fullLayout; |
| 958 | var xa = fullLayout.xaxis; |
| 959 | var ya = fullLayout.yaxis; |
| 960 | var ya2 = fullLayout.yaxis2; |
| 961 | |
| 962 | expect(xa._rangeInitial0).toBe(undefined); |
| 963 | expect(xa._rangeInitial1).toBe(undefined); |
| 964 | |
| 965 | expect(ya._rangeInitial0).toBe(undefined); |
| 966 | expect(ya._rangeInitial1).toBe(undefined); |
| 967 | |
| 968 | expect(ya2._rangeInitial0).toBe(undefined); |
| 969 | expect(ya2._rangeInitial1).toBe(undefined); |
| 970 | |
| 971 | expect(xa.range).toBeCloseToArray(exp.xRng, 1, msg); |
| 972 | expect(ya.range).toBeCloseToArray(exp.yRng, 1, msg); |
| 973 | expect(ya2.range).toBeCloseToArray(exp.y2Rng, 1, msg); |
| 974 | } |
| 975 | |
| 976 | Plotly.newPlot(gd, [], {}) |
| 977 | .then(function() { |
no outgoing calls
no test coverage detected
searching dependent graphs…