Fix soft-wrapping spec

This commit is contained in:
Antonio Scandurra
2015-09-28 15:43:13 +02:00
parent 6f7b98178c
commit aec72e5ed6

View File

@@ -473,8 +473,7 @@ describe "TextEditorComponent", ->
editor.setText "a line that wraps \n"
editor.setSoftWrapped(true)
nextAnimationFrame()
componentNode.style.width = 16 * charWidth + wrapperNode.getVerticalScrollbarWidth() + 'px'
component.measureDimensions()
wrapperNode.setWidth(16 * charWidth)
nextAnimationFrame()
it "doesn't show end of line invisibles at the end of wrapped lines", ->