Skip to content

Commit 68a354e

Browse files
committed
make sure the stack is clear before the run continues
1 parent c227535 commit 68a354e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/navigation/navigation_core.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@
172172
});
173173

174174
asyncTest( "last entry choosen amongst multiple identical url history stack entries on hash change", function(){
175+
// make sure the stack is clear after initial page load an any other delayed page loads
176+
// TODO better browser state management
177+
$.mobile.urlHistory.stack = [];
178+
$.mobile.urlHistory.activeIndex = 0;
179+
175180
$.testHelper.pageSequence([
176181
function(){ $.testHelper.openPage("#dup-history-first"); },
177182
function(){ $("#dup-history-first a").click(); },

0 commit comments

Comments
 (0)