@@ -33,9 +33,9 @@ $(function () {
33
33
var $btn = $ ( '<button class="btn" data-loading-text="fat">mdo</button>' )
34
34
equal ( $btn . html ( ) , 'mdo' , 'btn text equals mdo' )
35
35
$btn . bootstrapButton ( 'loading' )
36
- equal ( $btn . html ( ) , 'fat' , 'btn text equals fat' )
37
36
stop ( )
38
37
setTimeout ( function ( ) {
38
+ equal ( $btn . html ( ) , 'fat' , 'btn text equals fat' )
39
39
ok ( $btn [ 0 ] . hasAttribute ( 'disabled' ) , 'btn is disabled' )
40
40
ok ( $btn . hasClass ( 'disabled' ) , 'btn has disabled class' )
41
41
start ( )
@@ -46,16 +46,16 @@ $(function () {
46
46
var $btn = $ ( '<button class="btn" data-loading-text="fat">mdo</button>' )
47
47
equal ( $btn . html ( ) , 'mdo' , 'btn text equals mdo' )
48
48
$btn . bootstrapButton ( 'loading' )
49
- equal ( $btn . html ( ) , 'fat' , 'btn text equals fat' )
50
49
stop ( )
51
50
setTimeout ( function ( ) {
51
+ equal ( $btn . html ( ) , 'fat' , 'btn text equals fat' )
52
52
ok ( $btn [ 0 ] . hasAttribute ( 'disabled' ) , 'btn is disabled' )
53
53
ok ( $btn . hasClass ( 'disabled' ) , 'btn has disabled class' )
54
54
start ( )
55
55
stop ( )
56
56
$btn . bootstrapButton ( 'reset' )
57
- equal ( $btn . html ( ) , 'mdo' , 'btn text equals mdo' )
58
57
setTimeout ( function ( ) {
58
+ equal ( $btn . html ( ) , 'mdo' , 'btn text equals mdo' )
59
59
ok ( ! $btn [ 0 ] . hasAttribute ( 'disabled' ) , 'btn is not disabled' )
60
60
ok ( ! $btn . hasClass ( 'disabled' ) , 'btn does not have disabled class' )
61
61
start ( )
@@ -67,16 +67,16 @@ $(function () {
67
67
var $btn = $ ( '<button class="btn" data-loading-text="fat"/>' )
68
68
equal ( $btn . html ( ) , '' , 'btn text equals ""' )
69
69
$btn . bootstrapButton ( 'loading' )
70
- equal ( $btn . html ( ) , 'fat' , 'btn text equals fat' )
71
70
stop ( )
72
71
setTimeout ( function ( ) {
72
+ equal ( $btn . html ( ) , 'fat' , 'btn text equals fat' )
73
73
ok ( $btn [ 0 ] . hasAttribute ( 'disabled' ) , 'btn is disabled' )
74
74
ok ( $btn . hasClass ( 'disabled' ) , 'btn has disabled class' )
75
75
start ( )
76
76
stop ( )
77
77
$btn . bootstrapButton ( 'reset' )
78
- equal ( $btn . html ( ) , '' , 'btn text equals ""' )
79
78
setTimeout ( function ( ) {
79
+ equal ( $btn . html ( ) , '' , 'btn text equals ""' )
80
80
ok ( ! $btn [ 0 ] . hasAttribute ( 'disabled' ) , 'btn is not disabled' )
81
81
ok ( ! $btn . hasClass ( 'disabled' ) , 'btn does not have disabled class' )
82
82
start ( )
0 commit comments