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

Function _assert

test/jasmine/tests/click_test.js:956–974  ·  view source on GitHub ↗
(msg, exp)

Source from the content-addressed store, hash-verified

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() {

Callers 1

click_test.jsFile · 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…