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

Function _assertFallback

test/jasmine/tests/map_test.js:1712–1727  ·  view source on GitHub ↗
(msg, exp)

Source from the content-addressed store, hash-verified

1710 ].join(' ');
1711
1712 function _assertFallback(msg, exp) {
1713 var allArgs = Lib.warn.calls.allArgs();
1714
1715 if(allArgs.length === exp.warnCnt) {
1716 for(var i = 0; i < exp.warnCnt; i++) {
1717 expect(allArgs[i][0]).toBe(arg, 'Lib.warn call #' + i);
1718 }
1719 } else {
1720 fail('Incorrect number of Lib.warn calls');
1721 }
1722 Lib.warn.calls.reset();
1723
1724 getLayerIds().slice(94, -1).forEach(function(id) {
1725 expect(id.indexOf('plotly-')).toBe(0, 'layer ' + id + ' fallback to top of map');
1726 });
1727 }
1728
1729 Plotly.newPlot(gd, [{
1730 type: 'scattermap',

Callers 1

map_test.jsFile · 0.85

Calls 1

getLayerIdsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…