@@ -260,8 +260,10 @@ func TestRender_ShortLinks(t *testing.T) {
260
260
261
261
rawtree := URLJoin (AppSubURL , "raw" , "master" )
262
262
url := URLJoin (tree , "Link" )
263
+ otherUrl := URLJoin (tree , "OtherLink" )
263
264
imgurl := URLJoin (rawtree , "Link.jpg" )
264
265
urlWiki := URLJoin (AppSubURL , "wiki" , "Link" )
266
+ otherUrlWiki := URLJoin (AppSubURL , "wiki" , "OtherLink" )
265
267
imgurlWiki := URLJoin (AppSubURL , "wiki" , "raw" , "Link.jpg" )
266
268
favicon := "http://google.com/favicon.ico"
267
269
@@ -301,6 +303,10 @@ func TestRender_ShortLinks(t *testing.T) {
301
303
"[[Name|Link.jpg|alt=\" AltName\" |title='Title']]" ,
302
304
`<p><a href="` + imgurl + `" rel="nofollow"><img src="` + imgurl + `" alt="AltName" title="Title"/></a></p>` ,
303
305
`<p><a href="` + imgurlWiki + `" rel="nofollow"><img src="` + imgurlWiki + `" alt="AltName" title="Title"/></a></p>` )
306
+ test (
307
+ "[[Link]] [[OtherLink]]" ,
308
+ `<p><a href="` + url + `" rel="nofollow">Link</a> <a href="` + otherUrl + `" rel="nofollow">OtherLink</a></p>` ,
309
+ `<p><a href="` + urlWiki + `" rel="nofollow">Link</a> <a href="` + otherUrlWiki + `" rel="nofollow">OtherLink</a></p>` )
304
310
}
305
311
306
312
func TestRender_Commits (t * testing.T ) {
0 commit comments