Update cursor positioning text for simplified token markup

This commit is contained in:
Nathan Sobo
2014-05-16 11:00:05 -06:00
parent 0ad2730353
commit 64c82f1c87

View File

@@ -262,7 +262,7 @@ describe "EditorComponent", ->
cursor = node.querySelector('.cursor')
cursorRect = cursor.getBoundingClientRect()
cursorLocationTextNode = node.querySelector('.storage.type.function.js').firstChild.firstChild
cursorLocationTextNode = component.lineNodeForScreenRow(0).querySelector('.storage.type.function.js').firstChild
range = document.createRange()
range.setStart(cursorLocationTextNode, 0)
range.setEnd(cursorLocationTextNode, 1)