       expect(document.activeElement).toBe paneElement
 
   describe "drag and drop", ->
-    buildDragEvent = (type, files) ->
+    buildDragEvent = (type, items) ->
       dataTransfer =
-        files: files
+        items: items
         data: {}
         setData: (key, value) -> @data[key] = value
         getData: (key) -> @data[key]


    describe "when a file is dragged to the pane", ->
      it "opens it", ->
        event = buildDragEvent("drop", [{path: "/fake1"}, {path: "/fake2"}])
        paneElement.dispatchEvent(event)
        expect(atom.applicationDelegate.open.callCount).toBe 1
        expect(atom.applicationDelegate.open.argsForCall[0][0]).toEqual pathsToOpen: ['/fake1', '/fake2'], here: true

PaneContainer = require '../src/pane-container'

describe "PaneElement", ->
  [paneElement, containerElement, pane] = []

  beforeEach ->
    spyOn(atom.applicationDelegate, "open")

    container = atom.workspace.getActivePaneContainer()
    containerElement = container.paneContainer.getElement()
    pane = container.getActivePane()
    paneElement = pane.getElement()

