 
   describe "9000-line-file.", ->
     benchmark "opening.", 5, ->
-      rootView.openSync('huge.js')
+      atom.workspaceView.openSync('huge.js')
 
     describe "after-opening.", ->
       beforeEach ->
-        rootView.openSync('huge.js')
+        atom.workspaceView.openSync('huge.js')
 
       benchmark "moving-to-eof.", 1, ->
         editorView.moveCursorToBottom()

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 "300-line-file.", ->
    beforeEach ->
      atom.workspaceView.openSync('medium.coffee')

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