     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(ddBox.top).toEqual(buttonBox.top + buttonBox.height + getSpacing(dd))
      expect(ddBox.left).toEqual(buttonBox.left)
    , 300
    jasmine.clock().tick(301)


  describe 'align', ->

    dd = new hx.Dropdown(id, content, {matchWidth: false })

    dd.show()
    dd._.dropdown.style('min-width').should.equal('0px')
    clock.tick(301)

  it 'should try to match the width of the parent if matchWidth is true', ->
    button.text('Wider button for testing')
