mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-25 16:44:43 +00:00
added tests for external link function
This commit is contained in:
parent
8a5060de13
commit
fedb0a7366
1 changed files with 6 additions and 0 deletions
|
|
@ -37,4 +37,10 @@
|
|||
|
||||
same(called, 2, "change page should be called twice");
|
||||
});
|
||||
|
||||
test( "check for external link succeeds for when the protocol is included", function(){
|
||||
same($.mobile.isExternalLink("<a href='mailto:'></a>"), true, "mailto");
|
||||
same($.mobile.isExternalLink("<a href='http://foo.com'></a>"), true, "http protocol");
|
||||
same($.mobile.isExternalLink("<a href='foo' rel='external'></a>"), true, "rel=external");
|
||||
});
|
||||
})(jQuery);
|
||||
Loading…
Reference in a new issue