     hx.loop = hx_loop = (f) ->
       g = -> hx_loop_update(f, g)
       hx_loop_update(f, g)
-    jasmine.clock().install()
     baseTime = new Date(2013, 0, 1)
-    jasmine.clock().mockDate(baseTime)
+    clock = sinon.useFakeTimers(baseTime.getTime())
 
   afterAll ->
     fixture.remove()
     hx.loop = savedHxLoop
-    jasmine.clock().uninstall()
+    clock.restore()
     hx.select('body')
       .style('padding', '')
       .style('margin', '')

  #   dd.show()
  #   setTimeout ->
  #     ddBox = roundAll dd._.dropdown.box()
  #     expect(dd._.dropdown.style('max-height')).toEqual('5px')
  #     expect(ddBox.left).toEqual(buttonBox.left)
  #     expect(ddBox.height).toEqual(5)
  #     hx.select('#style').remove()
  #   , 300
  #   jasmine.clock().tick(301)

  it 'should shift the dropdown down if shifting it up has moved it off the top of the screen', ->
    dd = new hx.Dropdown(id, content, {align: 'up'})

  id = '#button'

  fixture = undefined
  clock = undefined

  getWindowMeasurement = (horizontal, scroll) ->
    if scroll then 0
