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

Function assertEventData

test/jasmine/tests/scatterpolargl_test.js:162–172  ·  view source on GitHub ↗
(actual, expected)

Source from the content-addressed store, hash-verified

160 }
161
162 function assertEventData(actual, expected) {
163 expect(actual.points.length).toBe(expected.points.length);
164
165 expected.points.forEach(function(e, i) {
166 var a = actual.points[i];
167 if(a) {
168 expect(a.r).toBe(e.r, 'r');
169 expect(a.theta).toBe(e.theta, 'theta');
170 }
171 });
172 }
173
174 it('@gl should be able to toggle from svg to gl', function(done) {
175 gd = createGraphDiv();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…