test: add nofollow ref for non internal links only
gihnius gihnius@gmail.com
Fri, 21 Mar 2014 11:17:31 +0800
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
inline_test.go
→
inline_test.go
@@ -424,7 +424,10 @@
func TestNofollowLink(t *testing.T) { var tests = []string{ "[foo](/bar/)\n", - "<p><a href=\"/bar/\" rel=\"nofollow\">foo</a></p>\n", + "<p><a href=\"/bar/\">foo</a></p>\n", + + "[foo](http://bar.com/foo/)\n", + "<p><a href=\"http://bar.com/foo/\" rel=\"nofollow\">foo</a></p>\n", } doTestsInlineParam(t, tests, 0, HTML_SAFELINK|HTML_NOFOLLOW_LINKS) }