[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cvs
Subject:    [Zope-Checkins] CVS: Packages/StructuredText/tests -
From:       Andreas Jung <andreas () andreas-jung ! com>
Date:       2004-11-28 9:40:10
Message-ID: 20041128094010.6D9EB203249 () mail ! zope ! org
[Download RAW message or body]

Update of /cvs-repository/Packages/StructuredText/tests
In directory cvs.zope.org:/tmp/cvs-serv18183/lib/python/StructuredText/tests

Modified Files:
      Tag: Zope-2_7-branch
	testStructuredText.py 
Log Message:

      - Collector #631: Image URLs in StructuredText containing port
        numbers were not rendered correctly


=== Packages/StructuredText/tests/testStructuredText.py 1.21 => 1.21.2.1 ===
--- Packages/StructuredText/tests/testStructuredText.py:1.21	Sun May 25 16:40:10 2003
+++ Packages/StructuredText/tests/testStructuredText.py	Sun Nov 28 04:40:10 2004
@@ -208,7 +208,13 @@
     def testLinkInLiteral(self):
         self._test("this is a '\"literal\":http://www.zope.org/.' eh",
         '<code>"literal":http://www.zope.org/.</code>')
+     
+    def testImgLink(self):
+        self._test('"foo":img:http://www.zope.org/bar.gif',
+                   '<img src="http://www.zope.org/bar.gif" alt="foo">')
 
+        self._test('"foo":img:http://www.zope.org:8080/bar.gif',
+                   '<img src="http://www.zope.org:8080/bar.gif" alt="foo">')
 
     def XXXtestUnicodeContent(self):
         # This fails because ST uses the default locale to get "letters"

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic