FitNesse
.
SuiteAcceptanceTests
.
SuiteResponderTests
.
SuiteFileSection
.
TestFileSectionOrder
Edit Page:
!The directory listing in the files section displays directories in alphabetical order - directories first, then files. Create the file section |file section|setup| Add some files |file section file adder| |path|type|valid?| |cFile.txt|file|true| |dDir|dir|true| |cDir|dir|true| |bFile.txt|file|true| |dFile.txt|file|true| |bDir|dir|true| |aFile.txt|file|true| |aDir|dir|true| Verify that it's present through the file system |query:file section directory listing| |path| |aFile.txt| |bFile.txt| |cFile.txt| |dFile.txt| |aDir| |bDir| |cDir| |dDir| Now request the directory through fitnesse |Response Requester| |uri|valid?|contents?| |files/|true|| |Response Examiner| |line|inOrder?| |<a href="aDir/">|true| |<a href="bDir/">|true| |<a href="cDir/">|true| |<a href="dDir/">|true| |<a href="aFile.txt">aFile.txt</a>|true| |<a href="bFile.txt">bFile.txt</a>|true| |<a href="cFile.txt">cFile.txt</a>|true| |<a href="dFile.txt">dFile.txt</a>|true| |file section|teardown|
Hints:
Use alt+s (Windows) or control+s (Mac OS X) to save your changes. Or, tab from the text area to the "Save" button!
Grab the lower-right corner of the text area to increase its size (works with some browsers).