From 907cf655b3c9cc201924b4635fddd5e6dde45d2b Mon Sep 17 00:00:00 2001 From: John Bender Date: Mon, 15 Aug 2011 12:45:56 -0700 Subject: [PATCH] fixed navigation base tests to handle the relative internal page issue by using the click hack, per @jblas --- tests/unit/navigation/navigation_base.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/navigation/navigation_base.js b/tests/unit/navigation/navigation_base.js index 025d1fb8..db8a81f6 100644 --- a/tests/unit/navigation/navigation_base.js +++ b/tests/unit/navigation/navigation_base.js @@ -21,7 +21,7 @@ $.testHelper.pageSequence([ function(){ // Navigate from default internal page to another internal page. - $.testHelper.openPage("#internal-page-2"); + $.testHelper.openPage("#internal-page-2"); }, function(){ @@ -93,8 +93,8 @@ // Verify that we are on the expected page. same(location.hash, "#" + contentDir + "content-page-2.html", "call changePage() with a relative path should resolve relative to current page"); - // Try calling changePage() with an id - $.mobile.changePage("#internal-page-2"); + // test that an internal page works + $("a.ip2").click(); }, function(){