 
   beforeEach ->
     window.rootViewParentSelector = '#jasmine-content'
-    window.attachRootView()
-    rootView.project.setPath(require.resolve('benchmark/fixtures'))
+    window.attachRootView(require.resolve('benchmark/fixtures'))
+
+    rootView.width(1024)
+    rootView.height(768)
+    require fs.join(atom.configDirPath, "default-config")
+    rootView.open() # open blank editor
     editor = rootView.getActiveEditor()
 
   afterEach ->


  describe "9000-line-file.", ->
    benchmark "opening.", 5, ->
      editor.edit rootView.project.buildEditSessionForPath('huge.js')

    describe "after-opening.", ->
      beforeEach ->
        editor.edit rootView.project.buildEditSessionForPath('huge.js')

      benchmark "moving-to-eof.", 1, ->
        editor.moveCursorToBottom()


  describe "300-line-file.", ->
    beforeEach ->
      rootView.open('medium.coffee')

    describe "at-begining.", ->
      benchmark "insert-delete", ->
