       tests = [
           align: null
           check: ->
-            expect(ddBox.left).toEqual(buttonBox.left)
-            expect(ddBox.top).toEqual(buttonBox.bottom + getSpacing(dd))
+            ddBox.left.should.equal(buttonBox.left)
+            ddBox.top.should.equal(buttonBox.bottom + getSpacing(dd))
         ,
           align: 'up'
           check: ->
-            expect(ddBox.left).toEqual(buttonBox.left)
-            expect(ddBox.top).toEqual(buttonBox.top - ddBox.height - getSpacing(dd))
+            ddBox.left.should.equal(buttonBox.left)
+            ddBox.top.should.equal(buttonBox.top - ddBox.height - getSpacing(dd))
         ,
           align: 'down'
           check: ->
-            expect(ddBox.left).toEqual(buttonBox.left)
-            expect(ddBox.top).toEqual(buttonBox.bottom + getSpacing(dd))
+            ddBox.left.should.equal(buttonBox.left)
+            ddBox.top.should.equal(buttonBox.bottom + getSpacing(dd))
         ,
           align: 'left'
           check: ->
-            expect(ddBox.right).toEqual(buttonBox.left - getSpacing(dd))
-            expect(ddBox.top).toEqual(buttonBox.top)
+            ddBox.right.should.equal(buttonBox.left - getSpacing(dd))
+            ddBox.top.should.equal(buttonBox.top)
         ,
           align: 'right'
           check: ->
-            expect(ddBox.left).toEqual(buttonBox.right + getSpacing(dd))
-            expect(ddBox.top).toEqual(buttonBox.top)
+            ddBox.left.should.equal(buttonBox.right + getSpacing(dd))
+            ddBox.top.should.equal(buttonBox.top)
         ,
           align: 'lbrb'
           check: ->
-            expect(ddBox.right).toEqual(buttonBox.left - getSpacing(dd))
-            expect(ddBox.bottom).toEqual(buttonBox.bottom)
+            ddBox.right.should.equal(buttonBox.left - getSpacing(dd))
+            ddBox.bottom.should.equal(buttonBox.bottom)
         ,
           align: 'lbrt'
           check: ->
-            expect(ddBox.right).toEqual(buttonBox.left - getSpacing(dd))
-            expect(ddBox.top).toEqual(buttonBox.top + buttonBox.height + getSpacing(dd))
+            ddBox.right.should.equal(buttonBox.left - getSpacing(dd))
+            ddBox.top.should.equal(buttonBox.top + buttonBox.height + getSpacing(dd))
         ,
           align: 'ltrb'
           check: ->
-            expect(ddBox.right).toEqual(buttonBox.left - getSpacing(dd))
-            expect(ddBox.bottom).toEqual(buttonBox.top - getSpacing(dd))
+            ddBox.right.should.equal(buttonBox.left - getSpacing(dd))
+            ddBox.bottom.should.equal(buttonBox.top - getSpacing(dd))
         ,
           align: 'rblt'
           check: ->
-            expect(ddBox.left).toEqual(buttonBox.right + getSpacing(dd))
-            expect(ddBox.top).toEqual(buttonBox.bottom + getSpacing(dd))
+            ddBox.left.should.equal(buttonBox.right + getSpacing(dd))
+            ddBox.top.should.equal(buttonBox.bottom + getSpacing(dd))
         ,
           align: 'rblb'
           check: ->
-            expect(ddBox.left).toEqual(buttonBox.right + getSpacing(dd))
-            expect(ddBox.bottom).toEqual(buttonBox.bottom)
+            ddBox.left.should.equal(buttonBox.right + getSpacing(dd))
+            ddBox.bottom.should.equal(buttonBox.bottom)
         ,
           align: 'rbrt'
           check: ->
-            expect(ddBox.right).toEqual(buttonBox.right)
-            expect(ddBox.top).toEqual(buttonBox.bottom + getSpacing(dd))
+            ddBox.right.should.equal(buttonBox.right)
+            ddBox.top.should.equal(buttonBox.bottom + getSpacing(dd))
         ,
           align: 'rtlb'
           check: ->
-            expect(ddBox.left).toEqual(buttonBox.right + getSpacing(dd))
-            expect(ddBox.top).toEqual(buttonBox.top - ddBox.height - getSpacing(dd))
+            ddBox.left.should.equal(buttonBox.right + getSpacing(dd))
+            ddBox.top.should.equal(buttonBox.top - ddBox.height - getSpacing(dd))
         ,
           align: 'rtrb'
           check: ->
-            expect(ddBox.right).toEqual(buttonBox.right)
-            expect(ddBox.bottom).toEqual(buttonBox.top - getSpacing(dd))
+            ddBox.right.should.equal(buttonBox.right)
+            ddBox.bottom.should.equal(buttonBox.top - getSpacing(dd))
       ]
 
       t = (test, index) ->

            ddBox = roundAll dd._.dropdown.box()
            test.check()
          , 300
          jasmine.clock().tick(301)

        if index < tests.length
          t(tests[index], index + 1)

    dd = new hx.Dropdown(id, content, {matchWidt: true })

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

  # it 'should detect the maxHeight properly', ->
  #   hx.select('head').append('style').attr('id','style').attr('type', 'text/css').text("""
