         scrollContainer.find('li').length.should.be.equal 2
         scrollContainer.find('li b')[0].innerHTML.should.contain "Aironet"
       # df:rendered event comes second
-      # TEMPORARY COMMENTED UNTIL fix-double-df:triggering branch is merged
       @scrollWidget.bind 'df:rendered', (event, res) ->
         res.results.length.should.be.equal 2
         done()

        done()

      scrollContainer.one 'df:scroll', ()->
        # first time this is called, scroll is on top. no nextPage called
        nextPageCalled.should.be.false
        # now we move the scroll
        scrollContainer.scrollTop 400
        # and trigger df:scroll again. this time, nextPage should be called
        scrollContainer.trigger 'df:scroll'

      scrollContainer.on 'DOMSubtreeModified', ()->
        # scroll is on top, no nextPage should be called after this

      # set up doofinder controller
      client = new doofinder.Client mock.request.hashid, mock.request.api_key,5,null,'fooserver'
      queryInputWidget = new doofinder.widgets.QueryInput '#query'
      @scrollWidget = new doofinder.widgets.ScrollResults '#scroll', scrollOffset: 95
      @controller = new doofinder.Controller client, [queryInputWidget]
      # the els in questionr
      @scrollContainer = @$ '#scroll'
