Blame view

test/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteVersionResponder/TestVersionsInPage/content.txt 1008 Bytes
fbe3c2bb   Benjamin Renard   First commit
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
When editing pages each version is recorded in the versions list.

Create a page to be requested.
!|Page creator.|
|Page name.|valid?|
|VersionsPage|true|

Now save the page a couple times.  This will produce a version history.
!|Response Requester.|
|uri|status?|
|VersionsPage?responder=saveData&pageContent=a+change&editTime=0&ticketId=0|303|
|VersionsPage?responder=saveData&pageContent=another+change&editTime=0&ticketId=0|303|

Now load up the version list.
!|Response Requester.|
|uri|status?|
|VersionsPage?versions|200|

The version list has the correct headings.
|Response Examiner.|
|type|pattern|matches?|
|contents|>Compare<|true|
|contents|>Name<|true|
|contents|>Author<|true|
|contents|>Age<|true|

The version list has 3 entries and each has a checkbox.
|Response Examiner.|
|type|pattern|matches?|matchCount?|
|contents|!-href="\?responder=viewVersion&amp;version=-!|true|4|
|contents|!-input type="checkbox" name="Version_-!|true|4|

Show the contents.
|Response Examiner.|
|contents?|
||