fix for path.get test

This commit is contained in:
Alex Kovar 2011-02-01 13:56:11 -06:00
parent 1eed03cf0c
commit aea4bfabfc

View file

@ -59,7 +59,8 @@
test( "path.get method is working properly", function(){
same($.mobile.path.get(), window.location.hash, "get method returns location.hash");
window.location.hash = "foo"
same($.mobile.path.get(), "foo", "get method returns location.hash minus hash character");
same($.mobile.path.get( "#foo/bar/baz.html" ), "foo/bar/", "get method with hash arg returns path with no filename or hash prefix");
same($.mobile.path.get( "#foo/bar/baz.html/" ), "foo/bar/baz.html/", "last segment of hash is retained if followed by a trailing slash");
});
@ -203,4 +204,4 @@
}, 500);
});
})(jQuery);
})(jQuery);