mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
💚
This commit is contained in:
@@ -452,6 +452,7 @@ describe "TextEditorComponent", ->
|
||||
|
||||
it "keeps rebuilding lines when continuous reflow is on", ->
|
||||
atom.config.set("editor.continuousReflow", true)
|
||||
wrapperNode.focus()
|
||||
nextAnimationFrame()
|
||||
|
||||
oldLineNodes = componentNode.querySelectorAll(".line")
|
||||
@@ -467,6 +468,7 @@ describe "TextEditorComponent", ->
|
||||
oldLineNodes = newLineNodes
|
||||
|
||||
atom.config.set("editor.continuousReflow", false)
|
||||
wrapperNode.blur()
|
||||
nextAnimationFrame()
|
||||
|
||||
newLineNodes = componentNode.querySelectorAll(".line")
|
||||
@@ -854,6 +856,7 @@ describe "TextEditorComponent", ->
|
||||
|
||||
it "keeps rebuilding line numbers when continuous reflow is on", ->
|
||||
atom.config.set("editor.continuousReflow", true)
|
||||
wrapperNode.focus()
|
||||
nextAnimationFrame()
|
||||
|
||||
oldLineNodes = componentNode.querySelectorAll(".line-number")
|
||||
@@ -869,6 +872,7 @@ describe "TextEditorComponent", ->
|
||||
oldLineNodes = newLineNodes
|
||||
|
||||
atom.config.set("editor.continuousReflow", false)
|
||||
wrapperNode.blur()
|
||||
nextAnimationFrame()
|
||||
|
||||
newLineNodes = componentNode.querySelectorAll(".line-number")
|
||||
|
||||
Reference in New Issue
Block a user