Author: jprantan
Date: Tue Mar 24 02:49:53 2009
New Revision: 1497

Modified:
   trunk/atest/testdata/standard_libraries/builtin/misc.html
   trunk/src/robot/libraries/BuiltIn.py

Log:
Test and fix for issue 264.

Modified: trunk/atest/testdata/standard_libraries/builtin/misc.html
==============================================================================
--- trunk/atest/testdata/standard_libraries/builtin/misc.html   (original)
+++ trunk/atest/testdata/standard_libraries/builtin/misc.html Tue Mar 24 02:49:53 2009
@@ -530,7 +530,7 @@
 <td></td>
 <td></td>
 </tr>
-<tr>
+<tr><td></td><td>Comment</td><td>Should work also with ${NON EXISTING} variable and</td><td>${OTHER NON EXISTING} variable</td><td></td></tr><tr><td></td><td>Comment</td><td>@{NON EXISTING LIST} variable should work also</td><td>@{OTHER NON EXISTING LIST}</td><td></td></tr><tr>
 <td></td>
 <td></td>
 <td></td>

Modified: trunk/src/robot/libraries/BuiltIn.py
==============================================================================
--- trunk/src/robot/libraries/BuiltIn.py        (original)
+++ trunk/src/robot/libraries/BuiltIn.py        Tue Mar 24 02:49:53 2009
@@ -956,6 +956,16 @@
                             % kwname)
         return NAMESPACES.current.suite

+    def comment(self, *messages):
+ """Displays the given messages in the log file as keyword arguments.
+
+ This keyword does nothing with the arguments it receives, but as they
+        are visible in the log, this keyword can be used to display simple
+ messages. In more complicated cases, the `Log` or `Log Many` keywords
+        should be used.
+        """
+        pass
+

 class Misc:

@@ -1049,16 +1059,6 @@
         self.log('Log level changed from %s to %s' % (old, level.upper()))
         return old

-    def comment(self, *messages):
- """Displays the given messages in the log file as keyword arguments.
-
- This keyword does nothing with the arguments it receives, but as they
-        are visible in the log, this keyword can be used to display simple
- messages. In more complicated cases, the `Log` or `Log Many` keywords
-        should be used.
-        """
-        pass
-
     def syslog(self, message, level="INFO"):
         """Logs the given message with the given level into syslog."""
         output.SYSLOG.write(message, level)

Reply via email to