mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-19 13:51:00 +00:00
fix for path.get test
This commit is contained in:
parent
1eed03cf0c
commit
aea4bfabfc
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue