From 2a8d38f2f05e6e9f8b472aa17fc215547106d0fc Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Fri, 15 Dec 2017 17:53:52 -0500 Subject: [PATCH] explicit test for #1264 --- test/jasmine/tests/localize_test.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/jasmine/tests/localize_test.js b/test/jasmine/tests/localize_test.js index 2635411d512..65394e6ef11 100644 --- a/test/jasmine/tests/localize_test.js +++ b/test/jasmine/tests/localize_test.js @@ -219,6 +219,16 @@ describe('localization', function() { }) .then(function() { expect(firstYLabel()).toBe('0p5'); + + return Plotly.relayout(gd, {'yaxis.tickformat': '.3f'}); + }) + .then(function() { + expect(firstYLabel()).toBe('0p500'); + + return Plotly.relayout(gd, {separators: null}); + }) + .then(function() { + expect(firstYLabel()).toBe('0D500'); }) .catch(failTest) .then(done);