mediawiki-extensions-Secure.../tests/parser/parserTests.txt
Kunal Mehta e436b78837 Initial commit
Change-Id: I2c8efb613632ce785580e8fba4da5b0a3a36a0f6
2018-07-29 19:01:06 -07:00

17 lines
835 B
Plaintext

!! test
Different domains
!! input
Normal: http://test.localhost/
Preloaded: http://en.wikipedia.org/wiki/Main_Page
Protorel: [//en.wikipedia.org/wiki/Main_Page Main Page]
TLD: http://foo.dev/foo/
Ignored protocol: ftp://en.wikipedia.org/
!! result
<p>Normal: <a rel="nofollow" class="external free" href="http://test.localhost/">http://test.localhost/</a>
Preloaded: <a rel="nofollow" class="external free" href="https://en.wikipedia.org/wiki/Main_Page">http://en.wikipedia.org/wiki/Main_Page</a>
Protorel: <a rel="nofollow" class="external text" href="https://en.wikipedia.org/wiki/Main_Page">Main Page</a>
TLD: <a rel="nofollow" class="external free" href="https://foo.dev/foo/">http://foo.dev/foo/</a>
Ignored protocol: <a rel="nofollow" class="external free" href="ftp://en.wikipedia.org/">ftp://en.wikipedia.org/</a>
</p>
!! end