MCPcopy
hub / github.com/plotly/plotly.js / _assertMatchingAxes

Function _assertMatchingAxes

test/jasmine/tests/axes_test.js:1164–1171  ·  view source on GitHub ↗
(names, autorange, rng)

Source from the content-addressed store, hash-verified

1162 expect(layoutOut._axisMatchGroups).toContain({x4: 1, y4: 1});
1163
1164 function _assertMatchingAxes(names, autorange, rng) {
1165 names.forEach(function(n) {
1166 var ax = layoutOut[n];
1167 expect(ax.autorange).toBe(autorange, n);
1168 expect(ax.range[0]).toBe(rng[0], n);
1169 expect(ax.range[1]).toBe(rng[1], n);
1170 });
1171 }
1172
1173 _assertMatchingAxes(['xaxis', 'xaxis2'], true, [-1, 6]);
1174 _assertMatchingAxes(['yaxis', 'yaxis2'], false, [0, 1]);

Callers 1

axes_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…