guarantee the page reset in the listview tests has completed before continuing

This commit is contained in:
John Bender 2012-01-13 14:28:00 -08:00
parent 877599dd6c
commit 5c1fc9540b

View file

@ -4,13 +4,21 @@
// TODO split out into seperate test files
(function($){
var home = $.mobile.path.parseUrl( location.href ).pathname;
var home = $.mobile.path.parseUrl( location.href ).pathname + location.search;
$.mobile.defaultTransition = "none";
module( "Basic Linked list", {
setup: function(){
$.mobile.changePage( "#basic-linked-test" );
if( location.hash != "#basic-linked-test" ){
stop();
$(document).one("pagechange", function() {
start();
});
$.mobile.changePage( home );
}
}
});