content.txt
2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
!2 Test that ''existing'' WikiPageReference tokens are converted to links.
* A WikiPageReference is said to be ''existing'' if the page to which it refers already exists in the wiki.
* A WikiPageReference can be a simple .FitNesse.SuiteAcceptanceTests.SuiteWidgetTests.WikiWord, or it can be a WikiPagePath.
* A WikiPageReference that begins with a dot ("'''.'''") is taken to be relative to the ''root'' of the wiki.
* A WikiPageReference that does not begin with a dot is taken to be relative to the parent of the current page.
----
!3 Test simple relative WikiPageReference.
* Create pages at the root level. One page refers to the other.
|Page creator.|
|Page name.|Page contents.|valid?|
|!-SomePage-!|some page|true|
|!-RelativeReferencePage-!|!-SomePage-!|true|
* Then request the page with the reference
|Response Requester.|
|uri|valid?|
|!-RelativeReferencePage-!|true|
* Make sure the rendered page has a link.
|Response Examiner.|
|type|pattern|matches?|value|
|contents|<a href="!-SomePage-!">!-SomePage-!</a>|true||
----
!3 Test simple global .FitNesse.SuiteAcceptanceTests.SuiteWidgetTests.WikiWord
* Create pages at the root level. One page refers to the other using a global WikiPageReference.
|Page creator.|
|Page name.|Page contents.|valid?|
|!-GlobalReferencePage-!|!-.SomePage-!|true|
* Then request the page with the reference
|Response Requester.|
|uri|valid?|
|!-GlobalReferencePage-!|true|
* Make sure the rendered page has a link.
|Response Examiner.|
|type|pattern|matches?|value|
|contents|<a href="!-SomePage-!">!-.SomePage-!</a>|true||
----
!3 Test relative WikiPagePath
|Page creator.|
|Page name.|Page contents.|valid?|
|!-SomePage.SubPage-!|!-sub page-!|true|
|!-SomePage.RelativeReference-!|!-SubPage-!|true|
* Then request the page with the reference
|Response Requester.|
|uri|valid?|
|!-SomePage.RelativeReference-!|true|
* Make sure the link is to !-SomePage.SubPage-!
|Response Examiner.|
|type|pattern|matches?|value|
|contents|<a href="!-SomePage.SubPage-!">!-SubPage-!</a>|true||
----
!3 Test global WikiPagePath
|Page creator.|
|Page name.|Page contents.|valid?|
|!-SomePage.GlobalReference-!|!-.SomePage.SubPage-!|true|
* Then request the page with the reference
|Response Requester.|
|uri|valid?|
|!-SomePage.GlobalReference-!|true|
* Make sure the link is to !-SomePage.SubPage-!
|Response Examiner.|
|type|pattern|matches?|value|
|contents|<a href="!-SomePage.SubPage-!">!-.SomePage.SubPage-!</a>|true||