From 419c3752d23be086c0c3f6328fb2520dac8a3a19 Mon Sep 17 00:00:00 2001 From: "alfred.jackson" Date: Fri, 27 Jan 2017 17:48:02 -0600 Subject: [PATCH] fixed the degreesToStringHDMS_() function to promote a seconds value of 60 up to the next minute; fixed test to account for the padding for minutes and seconds --- test/spec/ol/coordinate.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/spec/ol/coordinate.test.js b/test/spec/ol/coordinate.test.js index 0627866cd0..de2fe25236 100644 --- a/test/spec/ol/coordinate.test.js +++ b/test/spec/ol/coordinate.test.js @@ -212,7 +212,7 @@ describe('ol.coordinate', function() { it('formats with given fractional digits, if passed', function() { var coord = [7.85, 47.983201]; var got = ol.coordinate.toStringHDMS(coord, 3); - var expected = '47° 58′ 59.524″ N 7° 51′ 0.000″ E'; + var expected = '47° 58′ 59.524″ N 7° 51′ 00.000″ E'; expect(got).to.be(expected); }); });