Benchmark movement of cursor that scrolls the editor's scroll view

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-05-14 15:44:23 -06:00
parent 550bd0a979
commit 13553f79bc

View File

@@ -59,6 +59,13 @@ describe "editor.", ->
benchmark "inserting-newline", 5, ->
editor.insertNewline()
describe "on-last-visible-line.", ->
beforeEach ->
editor.setCursorScreenPosition([editor.getLastVisibleScreenRow(), 0])
fbenchmark "move-down-and-scroll", 300, ->
editor.trigger 'move-down'
describe "at-eof.", ->
endPosition = null