This repository was archived by the owner on Jun 3, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4
4
< head >
5
5
< title > QUnit Test Page for jquery.timeout</ title >
6
6
< link rel ="stylesheet " href ="http://code.jquery.com/qunit/git/qunit.css " type ="text/css " media ="screen " />
7
- < script type ="text/javascript " src ="http://code.jquery.com/jquery-1.6 .min.js "> </ script >
7
+ < script type ="text/javascript " src ="http://code.jquery.com/jquery.min.js "> </ script >
8
8
< script type ="text/javascript " src ="http://code.jquery.com/qunit/git/qunit.js "> </ script >
9
9
< script type ="text/javascript " src ="jquery.timeout.js "> </ script >
10
10
</ head >
@@ -36,7 +36,8 @@ <h2 id="qunit-userAgent"></h2>
36
36
} ) ;
37
37
38
38
asyncTest ( "clear timeout" , 1 , function ( ) {
39
- var t = $ . timeout ( 86400000 ) . then ( function ( ) {
39
+ var t = $ . timeout ( 86400000 ) ;
40
+ t . then ( function ( ) {
40
41
ok ( false ) ;
41
42
start ( ) ;
42
43
} , function ( ) {
@@ -61,13 +62,13 @@ <h2 id="qunit-userAgent"></h2>
61
62
} ) ;
62
63
63
64
asyncTest ( "additional reject args" , 3 , function ( ) {
64
- var t = $ . timeout ( 86400000 ) . fail ( function ( a , b ) {
65
+ var t = $ . timeout ( 86400000 ) ;
66
+ t . fail ( function ( a , b ) {
65
67
equal ( arguments . length , 2 ) ;
66
68
equal ( a , "abc" ) ;
67
69
equal ( b , 42 ) ;
68
70
start ( ) ;
69
71
} ) ;
70
-
71
72
t . clear ( "abc" , 42 ) ;
72
73
} ) ;
73
74
</ script >
You can’t perform that action at this time.
0 commit comments