mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-02 11:54:43 +00:00
small tweak to wait for page load in navigation tests
This commit is contained in:
parent
05e7bbac45
commit
b1c8621309
1 changed files with 4 additions and 4 deletions
|
|
@ -205,25 +205,25 @@
|
|||
}, 500);
|
||||
});
|
||||
|
||||
test( "when loading a page where data-url is defined on a sub element set the hash with that url", function(){
|
||||
asyncTest( "when loading a page where data-url is defined on a sub element set the hash with that url", function(){
|
||||
location.hash = "";
|
||||
$("#data-url a").click();
|
||||
|
||||
setTimeout(function(){
|
||||
ok(location.hash.indexOf("#foo/") >= 0);
|
||||
start();
|
||||
}, 500);
|
||||
}, 1000);
|
||||
stop();
|
||||
});
|
||||
|
||||
test( "when loading a page where data-url is not defined on a sub element hash defaults to the url", function(){
|
||||
asyncTest( "when loading a page where data-url is not defined on a sub element hash defaults to the url", function(){
|
||||
location.hash = "";
|
||||
$("#non-data-url a").click();
|
||||
|
||||
setTimeout(function(){
|
||||
ok(location.hash.indexOf("#non-data-url.html") >= 0);
|
||||
start();
|
||||
}, 500);
|
||||
}, 1000);
|
||||
stop();
|
||||
});
|
||||
})(jQuery);
|
||||
|
|
|
|||
Loading…
Reference in a new issue