FitNesse. SuiteAcceptanceTests. SuiteWidgetTests.
TestTables [add child]

 Scenario Libraries

This page tests the construction of tables.

script
start Page Builder
line |1 Row 1 Cell|
page TableTestPage
Response Requester.
uri valid? contents?
TableTestPage true  
Response Examiner.
type pattern matches? wrapped html?
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.
script
start Page Builder
line | 1 is not a list|
page TableTestPageTwo
Response Requester.
uri valid? contents?
TableTestPageTwo true  
Response Examiner.
type pattern matches? wrapped html?
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.
script
start Page Builder
line !|'''bold'''|''italic''|
page TableTestPageThree
Response Requester.
uri valid? contents?
TableTestPageThree true  
Response Examiner.
type pattern matches? wrapped html?
contents '''bold''' true  
Response Examiner.
type pattern matches?
contents ''italic'' true