diff --git a/tests/unit/navigation/index.html b/tests/unit/navigation/index.html index 24444ab4..55c9fc3b 100644 --- a/tests/unit/navigation/index.html +++ b/tests/unit/navigation/index.html @@ -7,23 +7,21 @@ - + - - + + - - + + + + diff --git a/tests/unit/navigation/navigation_core.js b/tests/unit/navigation/navigation_core.js index 7d61bcff..4bc2a968 100644 --- a/tests/unit/navigation/navigation_core.js +++ b/tests/unit/navigation/navigation_core.js @@ -8,6 +8,7 @@ originalLinkBinding = $.mobile.linkBindingEnabled, siteDirectory = location.pathname.replace( /[^/]+$/, "" ), home = $.mobile.path.parseUrl(location.pathname).directory, + homeWithSearch = home + location.search, navigateTestRoot = function(){ $.testHelper.openPage( "#" + location.pathname + location.search ); }; @@ -426,7 +427,7 @@ function(){ $.testHelper.assertUrlLocation({ hash: "skip-dialog-first", - push: home + "#skip-dialog-first", + push: homeWithSearch + "#skip-dialog-first", report: "should be the first page in the sequence" }); @@ -455,7 +456,7 @@ function(){ $.testHelper.assertUrlLocation({ hash: "skip-dialog-second", - push: home + "#skip-dialog-second", + push: homeWithSearch + "#skip-dialog-second", report: "should be the second page after the dialog" }); @@ -753,7 +754,7 @@ function(){ $.testHelper.assertUrlLocation({ hash: "foo&ui-state=dialog", - push: home + "#foo&ui-state=dialog", + push: homeWithSearch + "#foo&ui-state=dialog", report: "hash should match what was loaded" });