added async test calls to guarantee the correct assertion is being fired

This commit is contained in:
John Bender 2011-01-22 22:41:59 -08:00
parent e30ece11ac
commit 538151491c

View file

@ -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);
});
});