mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-17 04:41:01 +00:00
combined path.isExternal tests
This commit is contained in:
parent
fa2b1903de
commit
20c86f655e
1 changed files with 1 additions and 4 deletions
|
|
@ -81,13 +81,10 @@
|
|||
|
||||
});
|
||||
|
||||
|
||||
test( "path.isExternal is working properly", function(){
|
||||
same( $.mobile.path.isExternal( location.href ), false, "same domain is not external" );
|
||||
same( $.mobile.path.isExternal( "http://example.com" ), true, "example.com is external" );
|
||||
});
|
||||
|
||||
|
||||
test( "path.isExternal method is working properly", function(){
|
||||
same($.mobile.path.isExternal("mailto:"), true, "mailto protocol");
|
||||
same($.mobile.path.isExternal("http://foo.com"), true, "http protocol");
|
||||
same($.mobile.path.isExternal("http://www.foo.com"), true, "http protocol with www");
|
||||
|
|
|
|||
Loading…
Reference in a new issue