We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20c86f6 commit 3484c40Copy full SHA for 3484c40
tests/unit/navigation/navigation_core.js
@@ -81,6 +81,12 @@
81
82
});
83
84
+ test( "path.hasProtocol is working properly", function(){
85
+ same( $.mobile.path.hasProtocol( "tel:5559999" ), true, "value in tel protocol format has protocol" );
86
+ same( $.mobile.path.hasProtocol( location.href ), true, "location href has protocol" );
87
+ same( $.mobile.path.hasProtocol( "foo/bar/baz.html" ), false, "simple directory path has no protocol" );
88
+ same( $.mobile.path.hasProtocol( "file://foo/bar/baz.html" ), true, "simple directory path with file:// has protocol" );
89
+ });
90
91
test( "path.isExternal is working properly", function(){
92
same( $.mobile.path.isExternal( location.href ), false, "same domain is not external" );
0 commit comments