unit test for path.isExternal

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

View file

@ -80,6 +80,11 @@
same( $.mobile.path.stripHash( "#bar" ), "bar", "returns a hash without the # prefix");
});
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(){