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

Function _assert

test/jasmine/tests/mesh3d_test.js:229–239  ·  view source on GitHub ↗
(user, full)

Source from the content-addressed store, hash-verified

227 var gd = createGraphDiv();
228
229 function _assert(user, full) {
230 var trace = gd.data[0];
231 var fullTrace = gd._fullData[0];
232
233 expect(trace.cauto).toBe(user[0], 'user cauto');
234 expect(trace.cmin).toBe(user[1], 'user cmin');
235 expect(trace.cmax).toBe(user[2], 'user cmax');
236 expect(fullTrace.cauto).toBe(full[0], 'full cauto');
237 expect(fullTrace.cmin).toBe(full[1], 'full cmin');
238 expect(fullTrace.cmax).toBe(full[2], 'full cmax');
239 }
240
241 Plotly.newPlot(gd, [{
242 type: 'mesh3d',

Callers 1

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