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

Function assertTextFontSizes

test/jasmine/tests/bar_test.js:1272–1280  ·  view source on GitHub ↗
(expFontSizes)

Source from the content-addressed store, hash-verified

1270 }
1271
1272 function assertTextFontSizes(expFontSizes) {
1273 return function() {
1274 var selection = d3SelectAll(BAR_TEXT_SELECTOR);
1275 expect(selection.size()).toBe(expFontSizes.length);
1276 selection.each(function(d, i) {
1277 expect(this.style.fontSize).toBe(expFontSizes[i] + 'px');
1278 });
1279 };
1280 }
1281
1282 it('should show bar texts (inside case)', function(done) {
1283 var data = [{

Callers 3

bar_test.jsFile · 0.85
assertSelectionModeStyleFunction · 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…