Sha256: 97e4799e03c9c747984d5071e8affdf9152934d01aa781187c26dc43237db52e

Contents?: true

Size: 1.39 KB

Versions: 8

Compression:

Stored size: 1.39 KB

Contents

!3 !-!contents-! with Properties Option
!include -seamless ContentsUsage
!3 Explicit Property Option
'''First create the parent page.'''
|Script|
|start|Page Builder|
|line|I'm the parent|
|line|!-!define PROPERTY_CHARACTERS {ABCDE}-!|
|line|!-!contents -p-!|
|page|!-ParentPage-!|

!include ContentsTestsInclude

'''Then request the parent page.'''
|Response Requester.|
|uri|valid?|contents?|
|!-ParentPage-!|true||

'''...and examine the requested page to be sure that the child pages are included'''
!|Response Examiner.|
|type|pattern|matches?|
|contents|a href="ParentPage.FirstChild" class="suite">FirstChild AB</a|true|
|contents|a href="ParentPage.SecondChild" class="static linked pruned">SecondChild CE</a|true|

!3 Indirect via PROPERTY_TOC Variable
'''First create the parent page.'''
|script|
|start|Page Builder|
|line|I'm also the parent|
|line|!-!define PROPERTY_TOC {true}-!|
|line|!-!contents-!|
|line|!-!define PROPERTY_TOC {false}-!|
|page|!-ParentPage-!|

!include ContentsTestsInclude

'''Then request the parent page.'''
|Response Requester.|
|uri|valid?|contents?|
|!-ParentPage-!|true||

'''...and examine the requested page to be sure that the child pages are included'''
!|Response Examiner.|
|type|pattern|matches?|
|contents|a href="ParentPage.FirstChild" class="suite">FirstChild \*\+</a|true|
|contents|a href="ParentPage.SecondChild" class="static linked pruned">SecondChild @-</a|true|

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcfit-0.9.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestContentsProperties/content.txt
xcfit-0.8.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestContentsProperties/content.txt
xcfit-0.7.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestContentsProperties/content.txt
xcfit-0.6.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestContentsProperties/content.txt
xcfit-0.5.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestContentsProperties/content.txt
xcfit-0.4.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestContentsProperties/content.txt
xcfit-0.3.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestContentsProperties/content.txt
xcfit-0.2.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestContentsProperties/content.txt