adobe/brackets — pull request #3803 by redmunds (2013-05-13 18:33:34+00:00)
Title: Fix unit tests for increment/decrement font size

A recent change to try fix #3478 exposed the inaccuracy of these tests. Specifically, changing the ratio of line-height to font-size from 1.25 to 1.3 broke these tests. Note that #3478 is still not fixed.

Making these tests perfectly accurate would require either some new function(s) in Editor, or to largely duplicate the code in ViewCommandHandlers._adjustFontSize(). If that's desired, then these tests should be disabled for now.

Otherwise, I found a possibly reasonable way to fix these unit tests. I also added comments to the tests to explain their shortcomings.