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

Function checkScatterGeoOrder

test/jasmine/tests/geo_test.js:1251–1269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1249 }
1250
1251 function checkScatterGeoOrder() {
1252 var order = ['js-path', 'point', null];
1253 var nodes = d3SelectAll('g.trace.scattergeo');
1254
1255 nodes.each(function() {
1256 var list = [];
1257
1258 d3Select(this).selectAll('*').each(function() {
1259 var className = d3Select(this).attr('class');
1260 list.push(className);
1261 });
1262
1263 var listSorted = list.slice().sort(function(a, b) {
1264 return order.indexOf(a) - order.indexOf(b);
1265 });
1266
1267 expect(list).toEqual(listSorted);
1268 });
1269 }
1270
1271 function countChoroplethPaths() {
1272 return d3SelectAll('g.trace.choropleth')

Callers 1

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