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

Function _assert

test/jasmine/tests/annotations_test.js:775–779  ·  view source on GitHub ↗
(msg, xrng, yrng)

Source from the content-addressed store, hash-verified

773
774 it('should propagate axis autorange changes when axis ranges are set', function(done) {
775 function _assert(msg, xrng, yrng) {
776 var fullLayout = gd._fullLayout;
777 expect(fullLayout.xaxis.range).toBeCloseToArray(xrng, 1, msg + ' xrng');
778 expect(fullLayout.yaxis.range).toBeCloseToArray(yrng, 1, msg + ' yrng');
779 }
780
781 Plotly.newPlot(gd, [{y: [1, 2]}], {
782 xaxis: {range: [0, 2]},

Callers 1

Calls 1

textDragFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…