           dropzone.addFile getMockFile()
           dropzone.addFile getMockFile()
 
-          dropzone.getUploadingFiles().length.should.equal 1
-          dropzone.getQueuedFiles().length.should.equal 1
-          dropzone.files.length.should.equal 2
-
-          sinon.spy requests[0], "abort"
-
-          requests[0].abort.callCount.should.equal 0
-
-          dropzone.disable()
-
-          requests[0].abort.callCount.should.equal 1
-
-          dropzone.getUploadingFiles().length.should.equal 0
-          dropzone.getQueuedFiles().length.should.equal 0
-          dropzone.files.length.should.equal 2
-
-          dropzone.files[0].status.should.equal Dropzone.CANCELED
-          dropzone.files[1].status.should.equal Dropzone.CANCELED
+          setTimeout ->
+
+            dropzone.getUploadingFiles().length.should.equal 1
+            dropzone.getQueuedFiles().length.should.equal 1
+            dropzone.files.length.should.equal 2
+
+            sinon.spy requests[0], "abort"
+
+            requests[0].abort.callCount.should.equal 0
+
+            dropzone.disable()
+
+            requests[0].abort.callCount.should.equal 1
+
+            dropzone.getUploadingFiles().length.should.equal 0
+            dropzone.getQueuedFiles().length.should.equal 0
+            dropzone.files.length.should.equal 2
+
+            dropzone.files[0].status.should.equal Dropzone.CANCELED
+            dropzone.files[1].status.should.equal Dropzone.CANCELED
+            done()
+          , 10
 
     describe ".destroy()", ->
-      it "should properly cancel all pending uploads and remove all file references", ->
+      it "should properly cancel all pending uploads and remove all file references", (done) ->
           dropzone.accept = (file, done) -> done()
 
           dropzone.options.parallelUploads = 1



  describe "helper function", ->
    describe "getExistingFallback()", ->
      element = null
      dropzone = null
      beforeEach ->
        element = Dropzone.createElement """<div></div>"""
        dropzone = new Dropzone element, url: "url"

      it "should return undefined if no fallback", ->
        expect(dropzone.getExistingFallback()).to.equal undefined


          dropzone.getQueuedFiles().length.should.equal 0
          dropzone.getUploadingFiles().length.should.equal 0

      it "should call processQueue()", (done) ->
          mockFile = getMockFile()

          dropzone.accept = (file, done) -> done()
