make sure the stack is clear before the run continues

This commit is contained in:
John Bender 2011-06-21 13:12:27 -07:00
parent c227535bd7
commit 68a354ed07

View file

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