1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-10-03 16:51:54 +02:00

get all spec passing again

This commit is contained in:
Jacob Thornton
2011-09-11 22:58:51 -07:00
parent 0afba3867d
commit dcf9aabc44
4 changed files with 46 additions and 38 deletions

View File

@@ -31,10 +31,10 @@ $(function () {
var twipsy = $('<a href="#" rel="twipsy" title="Another twipsy"></a>')
.appendTo('#qunit-runoff')
.twipsy({placement: 'below'})
.trigger('twipsy:show')
.twipsy('show')
ok($(".twipsy").hasClass('fade below in'), 'has correct classes applied')
twipsy.trigger('twipsy:hide')
twipsy.twipsy('hide')
ok(!$(".twipsy").length, 'twipsy removed')
$('#qunit-runoff').empty()
})
@@ -44,10 +44,10 @@ $(function () {
var twipsy = $('<a href="#" rel="twipsy"></a>')
.appendTo('#qunit-runoff')
.twipsy({fallback: '@fat'})
.trigger('twipsy:show')
.twipsy('show')
equals($(".twipsy").text(), "@fat", 'has correct default text')
twipsy.trigger('twipsy:hide')
twipsy.twipsy('hide')
ok(!$(".twipsy").length, 'twipsy removed')
$('#qunit-runoff').empty()
})
@@ -57,10 +57,10 @@ $(function () {
var twipsy = $('<a href="#" rel="twipsy" title="<b>@fat</b>"></a>')
.appendTo('#qunit-runoff')
.twipsy()
.trigger('twipsy:show')
.twipsy('show')
ok(!$('.twipsy b').length, 'b tag was not inserted')
twipsy.trigger('twipsy:hide')
twipsy.twipsy('hide')
ok(!$(".twipsy").length, 'twipsy removed')
$('#qunit-runoff').empty()
})
@@ -70,10 +70,10 @@ $(function () {
var twipsy = $('<a href="#" rel="twipsy" title="<b>@fat</b>"></a>')
.appendTo('#qunit-runoff')
.twipsy({html: true})
.trigger('twipsy:show')
.twipsy('show')
ok($('.twipsy b').length, 'b tag was inserted')
twipsy.trigger('twipsy:hide')
twipsy.twipsy('hide')
ok(!$(".twipsy").length, 'twipsy removed')
$('#qunit-runoff').empty()
})