File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -58,11 +58,14 @@ do ($ = jQuery) ->
58
58
t .localize (" test" , testOpts).localizePromise .then ->
59
59
assert .equal t .val (), " input success"
60
60
61
- test " input taasyncT value after second localization without key" , (assert ) ->
61
+ asyncTest " input test value after second localization without key" , (assert ) ->
62
62
t = localizableTagWithRel (" input" , " test.input" , val : " input fail" )
63
+ d = $ .Deferred ()
63
64
t .localize (" test" , testOpts).localizePromise .then ->
64
65
t .localize (" test2" , testOpts).localizePromise .then ->
65
66
assert .equal t .val (), " input success"
67
+ d .resolve ()
68
+ d
66
69
67
70
asyncTest " input tag placeholder substitution" , (assert ) ->
68
71
t = localizableTagWithRel (" input" , " test.input" , placeholder : " placeholder fail" )
Original file line number Diff line number Diff line change 94
94
return assert . equal ( t . val ( ) , "input success" ) ;
95
95
} ) ;
96
96
} ) ;
97
- test ( "input taasyncT value after second localization without key" , function ( assert ) {
98
- var t ;
97
+ asyncTest ( "input test value after second localization without key" , function ( assert ) {
98
+ var d , t ;
99
99
t = localizableTagWithRel ( "input" , "test.input" , {
100
100
val : "input fail"
101
101
} ) ;
102
- return t . localize ( "test" , testOpts ) . localizePromise . then ( function ( ) {
102
+ d = $ . Deferred ( ) ;
103
+ t . localize ( "test" , testOpts ) . localizePromise . then ( function ( ) {
103
104
return t . localize ( "test2" , testOpts ) . localizePromise . then ( function ( ) {
104
- return assert . equal ( t . val ( ) , "input success" ) ;
105
+ assert . equal ( t . val ( ) , "input success" ) ;
106
+ return d . resolve ( ) ;
105
107
} ) ;
106
108
} ) ;
109
+ return d ;
107
110
} ) ;
108
111
asyncTest ( "input tag placeholder substitution" , function ( assert ) {
109
112
var t ;
You can’t perform that action at this time.
0 commit comments