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

Function assertClose

test/jasmine/tests/plots_test.js:1327–1330  ·  view source on GitHub ↗
(attr, exp)

Source from the content-addressed store, hash-verified

1325 }
1326
1327 function assertClose(attr, exp) {
1328 var xy = d3Select('rect.nsewdrag')[0][0];
1329 expect(xy.getAttribute(attr)).toBeCloseTo(exp, -1);
1330 }
1331
1332 var fig = require('../../image/mocks/automargin-minreducedheight.json');
1333

Callers 1

plots_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…