$this->assertEqual($f,'<li><a href="http://www.example.com" title="www.example.com">www.example.com</a></li>',t('Converting domain names -- domain in a list.'));
$this->assertEqual($f,'<li><a href="http://www.example.com">www.example.com</a></li>',t('Converting domain names -- domain in a list.'));
$this->assertEqual($f,'(<a href="http://www.example.com/dir?a=1&b=2#a" title="www.example.com/dir?a=1&b=2#a">www.example.com/dir?a=1&b=2#a</a>)',t('Converting domain names -- domain in parentheses.'));
$this->assertEqual($f,'(<a href="http://www.example.com/dir?a=1&b=2#a">www.example.com/dir?a=1&b=2#a</a>)',t('Converting domain names -- domain in parentheses.'));
// Converting e-mail addresses.
$f=_filter_url('johndoe@example.com',$filter);
...
...
@@ -1049,13 +1049,13 @@ class FilterUnitTestCase extends DrupalUnitTestCase {
// of a sentence, so remove the dot from the link.
// @todo It can also be used at the end of a filename or a query string.
$f=_filter_url('www.example.com.',$filter);
$this->assertEqual($f,'<a href="http://www.example.com" title="www.example.com">www.example.com</a>.',t('Converting URLs -- do not recognize a dot at the end of a domain name (FQDNs).'));
$this->assertEqual($f,'<a href="http://www.example.com">www.example.com</a>.',t('Converting URLs -- do not recognize a dot at the end of a domain name (FQDNs).'));
$this->assertEqual($f,'<a href="http://www.example.com" title="http://www.example.com">http://www.example.com</a>.',t('Converting URLs -- do not recognize a dot at the end of an URL (FQDNs).'));
$this->assertEqual($f,'<a href="http://www.example.com">http://www.example.com</a>.',t('Converting URLs -- do not recognize a dot at the end of an URL (FQDNs).'));
$this->assertEqual($f,'<a href="http://www.example.com/index.php?a=" title="www.example.com/index.php?a=">www.example.com/index.php?a=</a>.',t('Converting URLs -- do forget about a dot at the end of a query string.'));
$this->assertEqual($f,'<a href="http://www.example.com/index.php?a=">www.example.com/index.php?a=</a>.',t('Converting URLs -- do forget about a dot at the end of a query string.'));