mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-26 23:04:00 +00:00
added async test calls to guarantee the correct assertion is being fired
This commit is contained in:
parent
e30ece11ac
commit
538151491c
1 changed files with 4 additions and 4 deletions
|
|
@ -127,22 +127,22 @@
|
|||
});
|
||||
|
||||
test( "page loading is called on document ready", function(){
|
||||
expect( 2 );
|
||||
|
||||
$.testHelper.alterExtend({ pageLoading: function(){
|
||||
start();
|
||||
ok("called");
|
||||
}});
|
||||
|
||||
stop();
|
||||
$.testHelper.reloadLib(libName);
|
||||
});
|
||||
|
||||
test( "hashchange triggered on document ready with single argument: true", function(){
|
||||
expect( 2 );
|
||||
|
||||
$(window).bind("hashchange", function(ev, arg){
|
||||
same(arg, true);
|
||||
start();
|
||||
});
|
||||
|
||||
stop();
|
||||
$.testHelper.reloadLib(libName);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue