FitNesse. SuiteAcceptanceTests. SuiteWikiPageResponderTests.
TestTables [add child]

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

This page tests the construction of tables.

Action Fixture.
start Page Builder
enter line |1 Row 1 Cell|
enter page TableTestPage
Response Requester.
uri valid? contents?
TableTestPage true  
Response Examiner.
type pattern matches? value
contents <table.*<tr>\s*<td>\s*1 Row 1 Cell\s*</td>\s*</tr>\s*</table> true  

Test that spaces inside table cells don't get interpreted.
Action Fixture.
start Page Builder
enter line | 1 is not a list|
enter page TableTestPageTwo
Response Requester.
uri valid? contents?
TableTestPageTwo true  
Response Examiner.
type pattern matches? value
contents 1 is not a list true  
Response Examiner.
type pattern matches?
contents <ol> false
contents <li> false

Test that nothing gets interpreted inside literal tables.
Action Fixture.
start Page Builder
enter line !|'''bold'''|''italic''|
enter page TableTestPageThree
Response Requester.
uri valid? contents?
TableTestPageThree true  
Response Examiner.
type pattern matches? value
contents '''bold''' true  
Response Examiner.
type pattern matches?
contents ''italic'' true