 editorModule "Cursor movement", template: "editor_empty"
 
 editorTest "move cursor around attachment", (done) ->
-  getComposition().insertFile(createFile())
+  insertFile(createFile())
   assertLocationRange([0,1])
   moveCursor "left", ->
     assertLocationRange([0,0])

      expandSelection "left", ->
        assertLocationRange([0,0], [0,3])
        done()

        done()

editorTest "expand selection over attachment", (done) ->
  insertFile(createFile())
  assertLocationRange([0,1])
  expandSelection "left", ->
    assertLocationRange([0,0], [0,1])
