Skip to content

Commit 1e4bd33

Browse files
committed
pie: test that hovertemplate supports array
1 parent 8d95f05 commit 1e4bd33

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/jasmine/tests/pie_test.js

+9
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,15 @@ describe('pie hovering', function() {
785785
'hovertemplate %{label}'
786786
);
787787
})
788+
.then(function() { return Plotly.restyle(gd, 'hovertemplate', [['', '', '', '', 'ht 5 %{percent:0.2%}<extra></extra>']]); })
789+
.then(_hover)
790+
.then(function() {
791+
assertLabel(
792+
['ht 5 33.33%'].join('\n'),
793+
null,
794+
'hovertemplate arrayOK'
795+
);
796+
})
788797
.catch(fail)
789798
.then(done);
790799
});

0 commit comments

Comments
 (0)