unit test for path.stripHash

This commit is contained in:
scottjehl 2011-01-26 08:39:35 -05:00
parent ca036b1b5e
commit 1156045e0c

View file

@ -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(){