               @respondWithSelector('target', status: 500)
             next =>
               expect(up.fragment.source('.target')).toMatchURL('/previous-source')
-
 
       describe 'with { transition } option', ->
 

            expect(spy).toHaveBeenCalledWith('old text', $parent)
            done()

      it 'focuses an [autofocus] element in the new fragment', asyncSpec (next) ->
        $fixture('.foo-bar')
        up.change '.foo-bar', document: """
          <form class='foo-bar'>
            <input class="autofocused-input" autofocus>
          </form>
        """

        next =>
          input = $('.autofocused-input').get(0)
          expect(input).toBeGiven()
          expect(document.activeElement).toBe(input)

      describeCapability 'canCustomElements', ->


          expect($($elements.get(1)).text()).toEqual('')




    describe 'up.destroy', ->
