Revision: 9e7bb4aa3ebc
Author:   Janne Härkönen <[email protected]>
Date:     Tue Jan 17 02:28:11 2012
Log:      tidy: added test for aligned tables
http://code.google.com/p/robotframework/source/detail?r=9e7bb4aa3ebc

Added:
 /atest/testdata/tidy/golden_with_headers.txt
Modified:
 /atest/robot/tidy/tidy.txt

=======================================
--- /dev/null
+++ /atest/testdata/tidy/golden_with_headers.txt        Tue Jan 17 02:28:11 2012
@@ -0,0 +1,12 @@
+*** Test Cases ***    header1            header2
+My Test Case [Documentation] This is a long comment that spans several columns + My TC Step 1 my step arg # step 1 comment + My TC Step 2 my step \ 2 arg second arg # step 2 comment
+                      [Teardown]         1 minute
+
+A very long named test case
+                      My step 1          This is arg
+                      My step 2          This also is arg
+
+Test with for : FOR ${i} IN RANGE 100 + \ Log ${i}
=======================================
--- /atest/robot/tidy/tidy.txt  Tue Jan 17 00:49:38 2012
+++ /atest/robot/tidy/tidy.txt  Tue Jan 17 02:28:11 2012
@@ -61,6 +61,10 @@
     Should Be Equal    ${output_before}    ${output_after}
     [Teardown]    Remove Directory    ${TEMPDIR}/tests    recurisive=True

+Custom headers are preserved and tables aligned accordingly
+ Run tidy and check result ${EMPTY} ${DATADIR}/golden_with_headers.txt ${DATADIR}/golden_with_headers.txt
+
+
 *** Keywords ***
 Run tidy with golden file and check result
     [Arguments]    ${options}    ${expected_result_file}

Reply via email to