MCPcopy Index your code
hub / github.com/plotly/plotly.js / assertRanges

Function assertRanges

test/jasmine/tests/cartesian_interact_test.js:833–845  ·  view source on GitHub ↗
(msg, exp)

Source from the content-addressed store, hash-verified

831 var eventData;
832
833 function assertRanges(msg, exp) {
834 exp.forEach(function(expi) {
835 var axNames = expi[0];
836 var rng = expi[1];
837 var opts = expi[2] || {};
838
839 axNames.forEach(function(n) {
840 var msgi = n + ' - ' + msg;
841 if(!opts.skipInput) expect(gd.layout[n].range).toBeCloseToArray(rng, TOL, msgi + ' |input');
842 expect(gd._fullLayout[n].range).toBeCloseToArray(rng, TOL, msgi + ' |full');
843 });
844 });
845 }
846
847 function assertEventData(msg, exp) {
848 if(eventData === null) {

Callers 2

_assertFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…