summaryrefslogtreecommitdiff
path: root/platform/darwin/test/MGLClockDirectionFormatterTests.m
Commit message (Collapse)AuthorAgeFilesLines
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-271-13/+13
|
* [ios, osx] Fixed direction formatter edge casesMinh Nguyễn2016-04-241-0/+20
| | | | Fixed an issue causing angles that are multiples of 360°, such as 720°, to be described as 0 o’clock. Fixed a crash when a compass direction is close enough to 360° to round up to 360°.
* [ios, osx] Corrected clock, coordinate formatsMinh Nguyễn2016-04-241-26/+31
| | | | | | | | Long unit style isn’t intended to be spelled out, so the clock and coordinate direction formatters now use numerals for long unit style, differing from medium unit style in less drastic ways. The locale no longer needs to be exposed, since it’ll always match the overall string’s locale. Added support to the coordinate formatter for different unit styles. Made minutes and seconds of arc optional. Maintain strings for darwin/ formatter classes in a separate Foundation strings table that can be shared between the iOS and OS X SDKs. Added an English .stringsdict override that correctly pluralizes units. Capitalize osxapp window titles, now that they spell out the directions.
* [ios, osx] Split MGLDirectionFormatter in twoMinh Nguyễn2016-04-221-0/+49
Split MGLDirectionFormatter into MGLClockDirectionFormatter, which specializes in clock positions, and MGLCompassDirectionFormatter, which boxes the compass. This neatly avoids any confusion that might arise if the developer fails to read the documentation and thinks the original unified formatter can convert between the two types of directions.