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

Function _assertTitle

test/jasmine/tests/pie_test.js:726–730  ·  view source on GitHub ↗
(msg, expText, expColor)

Source from the content-addressed store, hash-verified

724 });
725
726 function _assertTitle(msg, expText, expColor) {
727 var title = d3Select('.titletext > text');
728 expect(title.text()).toBe(expText, msg + ' text');
729 expect(title.node().style.fill).toBe(expColor, msg + ' color');
730 }
731
732 it('show a user-defined title with a custom position and font', function(done) {
733 Plotly.newPlot(gd, [{

Callers 1

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