FitNesse. SuiteAcceptanceTests. SuiteWikiPageResponderTests.
TestLinkAlias [add child]

 Set Up: .FitNesse.SuiteAcceptanceTests.SetUp (edit)

Test the Link Alias syntax.

Aliases to links can be created using the [[tag][link]] syntax.
The tag is interpreted for markup syntax, so it can be italic, or bold, or an image, etc. The link can be a relative or global wiki word, or it can be an http link.


Test simple link alias

Page creator.
Page name. Page contents. Page attributes. valid?
SomePage some page   true
AliasLinkPage [[tag][SomePage]]   true
Response Requester.
uri valid?
AliasLinkPage true
Response Examiner.
type pattern matches? value
contents <a href="SomePage">tag</a> true  


Test relative link alias

Page creator.
Page name. Page contents. Page attributes. valid?
SomePage.TargetPage target page   true
SomePage.LinkPage [[tag][TargetPage]]   true
Response Requester.
uri valid?
SomePage.LinkPage true
Response Examiner.
type pattern matches? value
contents <a href="SomePage.TargetPage">tag</a> true  


Test global link alias

Page creator.
Page name. Page contents. Page attributes. valid?
SomePage.GlobalLinkPage [[tag][.SomePage.TargetPage]]   true
Response Requester.
uri valid?
SomePage.GlobalLinkPage true
Response Examiner.
type pattern matches? value
contents <a href="SomePage.TargetPage">tag</a> true  


Test http link alias

Page creator.
Page name. Page contents. Page attributes. valid?
HttpLinkPage [[tag][http://fitnesse.org]]   true
Response Requester.
uri valid?
HttpLinkPage true
Response Examiner.
type pattern matches? value
contents <a href="http://fitnesse.org">tag</a> true