diff --git a/benchmark/benchmark-suite.coffee b/benchmark/benchmark-suite.coffee index 58c8dbf99..96e8cf155 100644 --- a/benchmark/benchmark-suite.coffee +++ b/benchmark/benchmark-suite.coffee @@ -9,6 +9,7 @@ describe "editor.", -> beforeEach -> window.rootViewParentSelector = '#jasmine-content' window.startup() + rootView.project.setPath(require.resolve('fixtures')) editor = rootView.activeEditor() afterEach -> @@ -23,7 +24,7 @@ describe "editor.", -> describe "300-line-file.", -> beforeEach -> - editor.setBuffer new Buffer(require.resolve('fixtures/medium.coffee')) + editor.edit rootView.project.open('fixtures/medium.coffee') describe "at-begining.", -> benchmark "insert-delete", -> @@ -44,11 +45,11 @@ describe "editor.", -> describe "9000-line-file.", -> benchmark "opening.", 5, -> - editor.setBuffer new Buffer(require.resolve('fixtures/huge.js')) + editor.edit rootView.project.open('fixtures/huge.js') describe "after-opening.", -> beforeEach -> - editor.setBuffer new Buffer(require.resolve('fixtures/huge.js')) + editor.edit rootView.project.open('fixtures/huge.js') benchmark "moving-to-eof.", 1, -> editor.moveCursorToBottom()