 
   describe "300-line-file.", ->
     beforeEach ->
-      rootView.openSync('medium.coffee')
+      atom.workspaceView.openSync('medium.coffee')
 
     describe "at-begining.", ->
       benchmark "insert-delete", ->

require './benchmark-helper'
{$, _, RootView} = require 'atom'
TokenizedBuffer = require '../src/tokenized-buffer'

describe "editorView.", ->
  editorView = null

  beforeEach ->
    window.rootViewParentSelector = '#jasmine-content'
    window.rootView = new RootView
    window.rootView.attachToDom()

    rootView.width(1024)
    rootView.height(768)
    rootView.openSync()
    editorView = rootView.getActiveView()

  afterEach ->
    if editorView.pendingDisplayUpdate


  describe "9000-line-file.", ->
    benchmark "opening.", 5, ->
      atom.workspaceView.openSync('huge.js')

    describe "after-opening.", ->
      beforeEach ->
        atom.workspaceView.openSync('huge.js')

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