mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
💚 Use a serif font to make sure char widths change
This commit is contained in:
@@ -2444,7 +2444,7 @@ describe "TextEditorComponent", ->
|
||||
initialLineHeightInPixels = editor.getLineHeightInPixels()
|
||||
initialCharWidth = editor.getDefaultCharWidth()
|
||||
|
||||
component.setFontFamily('sans-serif')
|
||||
component.setFontFamily('serif')
|
||||
expect(editor.getDefaultCharWidth()).toBe initialCharWidth
|
||||
|
||||
wrapperView.show()
|
||||
@@ -2453,7 +2453,7 @@ describe "TextEditorComponent", ->
|
||||
it "does not re-measure character widths until the editor is shown again", ->
|
||||
wrapperView.hide()
|
||||
|
||||
component.setFontFamily('sans-serif')
|
||||
component.setFontFamily('serif')
|
||||
|
||||
wrapperView.show()
|
||||
editor.setCursorBufferPosition([0, Infinity])
|
||||
|
||||
Reference in New Issue
Block a user