mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-01 03:14:43 +00:00
make sure the stack is clear before the run continues
This commit is contained in:
parent
c227535bd7
commit
68a354ed07
1 changed files with 5 additions and 0 deletions
|
|
@ -172,6 +172,11 @@
|
|||
});
|
||||
|
||||
asyncTest( "last entry choosen amongst multiple identical url history stack entries on hash change", function(){
|
||||
// make sure the stack is clear after initial page load an any other delayed page loads
|
||||
// TODO better browser state management
|
||||
$.mobile.urlHistory.stack = [];
|
||||
$.mobile.urlHistory.activeIndex = 0;
|
||||
|
||||
$.testHelper.pageSequence([
|
||||
function(){ $.testHelper.openPage("#dup-history-first"); },
|
||||
function(){ $("#dup-history-first a").click(); },
|
||||
|
|
|
|||
Loading…
Reference in a new issue