From 1156045e0c6e5899732d0a9775f1af9daf3a3975 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Wed, 26 Jan 2011 08:39:35 -0500 Subject: [PATCH] unit test for path.stripHash --- tests/unit/navigation/navigation_core.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unit/navigation/navigation_core.js b/tests/unit/navigation/navigation_core.js index 974ffb19..e3a0cbe7 100644 --- a/tests/unit/navigation/navigation_core.js +++ b/tests/unit/navigation/navigation_core.js @@ -75,6 +75,11 @@ same( $.mobile.path.clean( localpath ), fakepath, "removes location protocol, host, port from same-domain path"); same( $.mobile.path.clean( remotepath ), remotepath, "does nothing to an external domain path"); }); + + test( "path.stripHash is working properly", function(){ + same( $.mobile.path.stripHash( "#bar" ), "bar", "returns a hash without the # prefix"); + + }); test( "path.isExternal method is working properly", function(){