Revision: 9c204b99008b
Author:   Pekka Klärck
Date:     Fri May  6 13:28:05 2011
Log: tests for non-ascii failures in kw teardown and for kw having only teardown failing
http://code.google.com/p/robotframework/source/detail?r=9c204b99008b

Modified:
 /atest/robot/core/keyword_teardown.txt
 /atest/testdata/core/keyword_teardown.txt

=======================================
--- /atest/robot/core/keyword_teardown.txt      Fri May  6 06:28:59 2011
+++ /atest/robot/core/keyword_teardown.txt      Fri May  6 13:28:05 2011
@@ -48,6 +48,14 @@
Check Log Message ${tc.kws[0].kws[0].kws[0].msgs[0]} Please continue FAIL Check Log Message ${tc.kws[0].kws[1].msgs[0]} After continuable failure
     Check Log Message  ${tc.kws[0].kws[2].msgs[0]}  In UK Teardown
+
+Non-ASCII Failure in Keyword Teardown
+    ${tc}=  Check Test Case  ${TESTNAME}
+    Check Log Message  ${tc.kws[0].kws[0].msgs[0]}  åäö
+ Check Log Message ${tc.kws[0].kws[1].msgs[0]} Hyvää äitienpäivää! FAIL
+
+Keyword cannot have only teardown
+    Check Test Case  ${TESTNAME}

 Replacing Variables in Keyword Teardown Fails
     Check Test Case  ${TESTNAME}
=======================================
--- /atest/testdata/core/keyword_teardown.txt   Fri May  6 06:28:59 2011
+++ /atest/testdata/core/keyword_teardown.txt   Fri May  6 13:28:05 2011
@@ -31,6 +31,14 @@
     [Documentation]  FAIL Please continue
     Continuable Failure in Keyword

+Non-ASCII Failure in Keyword Teardown
+    [Documentation]  FAIL Keyword teardown failed:\nHyvää äitienpäivää!
+    Non-ASCII Failure in Keyword Teardown
+
+Keyword cannot have only teardown
+ [Documentation] FAIL User keyword 'Keyword cannot have only teardown' contains no keywords
+    Keyword cannot have only teardown
+
 Replacing Variables in Keyword Teardown Fails
[Documentation] FAIL Keyword teardown failed:\nNo keyword with name '${NON EXISTING}' found.
     Replacing Variables in Keyword Teardown Fails
@@ -76,6 +84,13 @@
     Failing keyword with Teardown
     Fail  Third failure in Teardown

+Non-ASCII Failure in Keyword Teardown
+    Log  åäö
+    [Teardown]  Fail  Hyvää äitienpäivää!
+
+Keyword cannot have only teardown
+    [Teardown]  Fail  This is not executed
+
 Replacing Variables in Keyword Teardown Fails
     Log  In UK
     [Teardown]  ${NON EXISTING}

Reply via email to