Skip to content
Browse files

Fixing failing navigation base test

Needed to change the tests to expect location.pathname + location.search
instead of location.pathname
  • Loading branch information...
1 parent 92cf8d6 commit f53651e9e118df936db11a275a60960a11cca392 @jasondscott committed Jan 23, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/unit/navigation/navigation_base.js
View
6 tests/unit/navigation/navigation_base.js
@@ -27,7 +27,7 @@
function(){
// Verify that we are on the 2nd internal page.
$.testHelper.assertUrlLocation({
- push: location.pathname + "#internal-page-2",
+ push: location.pathname + location.search + "#internal-page-2",
hash: "internal-page-2",
report: "navigate to internal page"
});
@@ -131,7 +131,7 @@
// Verify that we are on the expected page.
$.testHelper.assertUrlLocation({
hash: "internal-page-2",
- push: location.pathname + "#internal-page-2",
+ push: location.pathname + location.search + "#internal-page-2",
report: "call changePage() with a page id"
});
@@ -143,7 +143,7 @@
// Verify that we are on the expected page.
$.testHelper.assertUrlLocation({
hash: "internal-page-2",
- push: location.pathname + "#internal-page-2",
+ push: location.pathname + location.search + "#internal-page-2",
report: "calling changePage() with a page id that is not prefixed with '#' should not change page"
});

0 comments on commit f53651e

Please sign in to comment.
Something went wrong with that request. Please try again.