Index: trac/mimeview/tests/api.py
===================================================================
--- trac/mimeview/tests/api.py	(revision 3395)
+++ trac/mimeview/tests/api.py	(working copy)
@@ -80,6 +80,20 @@
         self.assertEqual('<span class="p_tripledouble">Test</span>', result[3])
         self.assertEqual('<span class="p_tripledouble">"""</span>', result[4])
 
+    def test_html_splitlines_with_comment(self):
+        """
+        Trac isn't rendering multiline comments correctly anymore.
+        """
+        lines = ['<span class="code-lang">&lt;?php',
+                 '</span><span class="code-comment">/*',
+                 'Test - this is a comment',
+                 '*/</span>']
+        result = list(_html_splitlines(lines))
+        self.assertEqual('<span class="code-lang">&lt;?php</span>', result[0])
+        self.assertEqual('<span class="code-lang"></span><span class="code-comment">/*</span>', result[1])
+        self.assertEqual('<span class="code-comment">Test - this is a comment</span>', result[2])
+        self.assertEqual('<span class="code-comment">*/</span>', result[3])
+        self.assertEqual(4, len(result))
 
 def suite():
     suite = unittest.TestSuite()

