Skip to content

Commit 68760e8

Browse files
committed
add test to lock issue 5962
1 parent d73f292 commit 68760e8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/jasmine/tests/scatterpolar_test.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,30 @@ describe('Test scatterpolar hover:', function() {
192192
},
193193
nums: 'r: 4.022892\nθ: 128.342°\n4.02289202968',
194194
name: 'Trial 3'
195+
}, {
196+
desc: 'with prefix and suffix',
197+
patch: function(fig) {
198+
fig.layout.polar.radialaxis.tickprefix = '(';
199+
fig.layout.polar.radialaxis.ticksuffix = ')';
200+
fig.layout.polar.angularaxis.tickprefix = '[';
201+
fig.layout.polar.angularaxis.ticksuffix = ']';
202+
return fig;
203+
},
204+
nums: 'r: (4.022892)\nθ: [128.342]',
205+
name: 'Trial 3'
206+
}, {
207+
desc: 'with prefix and suffix on invisible axes',
208+
patch: function(fig) {
209+
fig.layout.polar.radialaxis.visible = false,
210+
fig.layout.polar.radialaxis.tickprefix = '(';
211+
fig.layout.polar.radialaxis.ticksuffix = ')';
212+
fig.layout.polar.angularaxis.visible = false;
213+
fig.layout.polar.angularaxis.tickprefix = '[';
214+
fig.layout.polar.angularaxis.ticksuffix = ']';
215+
return fig;
216+
},
217+
nums: 'r: (4.022892)\nθ: [128.342]',
218+
name: 'Trial 3'
195219
}]
196220
.forEach(function(specs) {
197221
it('should generate correct hover labels ' + specs.desc, function(done) {

0 commit comments

Comments
 (0)