Permalink
Browse files

make sure the stack is clear before the run continues

  • Loading branch information...
1 parent c227535 commit 68a354ed0746e3f41d0a6e005ef297309dfe6782 @johnbender johnbender committed Jun 21, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/unit/navigation/navigation_core.js
View
5 tests/unit/navigation/navigation_core.js
@@ -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(); },

0 comments on commit 68a354e

Please sign in to comment.