     up.modal.config.closeDuration = 5
 
   describe 'JavaScript functions', ->
-    # Safari overlays the scrollbar tracker over the picture.
-    # The scrollbar does not take space.
-    # TODO: This is no longer true for new Safaris
-    assumedScrollbarWidth = if AgentDetector.isSafari() then 0 else 15
 
     describe 'up.modal.follow', ->
 


        it 'does not open multiple modals or pad the body twice if the user starts loading a second modal before the first was done loading', (done) ->
          up.modal.config.closeDuration = 10

          # Load a first modal
          up.modal.visit('/path1', target: '.container', animation: 'fade-in', duration: 50)


                    expect($('.up-modal-dialog').length).toBe(1)
                    expect($('.container')).toHaveText('response3')
                    bodyPadding = parseInt($('body').css('padding-right'))
                    expect(bodyPadding).toBeAround(scrollbarWidth, 10)
                    if scrollbarWidth > 0 # this test does not make sense on old Safaris
                      expect(bodyPadding).not.toBeAround(2 * scrollbarWidth, 2 * 5)
                    done()

        it 'closes the current modal and wait for its close animation to finish before starting the open animation of a second modal', asyncSpec (next) ->
