[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/ Made the preview tests not depend on unnecessary iframe tag details.

Shane Hathaway shane at zope.com
Tue Nov 16 16:36:59 EST 2004


Log message for revision 28463:
  Made the preview tests not depend on unnecessary iframe tag details.
  

Changed:
  U   Zope3/trunk/src/zope/app/dtmlpage/ftests.py
  U   Zope3/trunk/src/zope/app/file/browser/ftests.py
  U   Zope3/trunk/src/zope/app/zptpage/browser/ftests.py

-=-
Modified: Zope3/trunk/src/zope/app/dtmlpage/ftests.py
===================================================================
--- Zope3/trunk/src/zope/app/dtmlpage/ftests.py	2004-11-16 21:33:53 UTC (rev 28462)
+++ Zope3/trunk/src/zope/app/dtmlpage/ftests.py	2004-11-16 21:36:59 UTC (rev 28463)
@@ -106,8 +106,7 @@
             basic='mgr:mgrpw')
         self.assertEqual(response.getStatus(), 200)
         body = response.getBody()
-        self.assert_(
-            '<iframe src="." height="98%" width="98%"></iframe>' in body)
+        self.assert_('<iframe src="."' in body)
         self.checkForBrokenLinks(body, '/dtmlpage/@@preview.html', 'mgr:mgrpw')
 
 

Modified: Zope3/trunk/src/zope/app/file/browser/ftests.py
===================================================================
--- Zope3/trunk/src/zope/app/file/browser/ftests.py	2004-11-16 21:33:53 UTC (rev 28462)
+++ Zope3/trunk/src/zope/app/file/browser/ftests.py	2004-11-16 21:36:59 UTC (rev 28463)
@@ -145,8 +145,7 @@
             basic='mgr:mgrpw')
         self.assertEqual(response.getStatus(), 200)
         body = response.getBody()
-        self.assert_(
-            '<iframe src="." height="98%" width="98%"></iframe>' in body)
+        self.assert_('<iframe src="."' in body)
         self.checkForBrokenLinks(body, '/file/@@preview.html', 'mgr:mgrpw')
 
 
@@ -238,8 +237,7 @@
             basic='mgr:mgrpw')
         self.assertEqual(response.getStatus(), 200)
         body = response.getBody()
-        self.assert_(
-            '<iframe src="." height="98%" width="98%"></iframe>' in body)
+        self.assert_('<iframe src="."' in body)
         self.checkForBrokenLinks(body, '/image/@@preview.html', 'mgr:mgrpw')
 
 

Modified: Zope3/trunk/src/zope/app/zptpage/browser/ftests.py
===================================================================
--- Zope3/trunk/src/zope/app/zptpage/browser/ftests.py	2004-11-16 21:33:53 UTC (rev 28462)
+++ Zope3/trunk/src/zope/app/zptpage/browser/ftests.py	2004-11-16 21:36:59 UTC (rev 28463)
@@ -138,8 +138,7 @@
             basic='mgr:mgrpw')
         self.assertEqual(response.getStatus(), 200)
         body = response.getBody()
-        self.assert_(
-            '<iframe src="." height="98%" width="98%"></iframe>' in body)
+        self.assert_('<iframe src="."' in body)
         self.checkForBrokenLinks(body, '/zptpage/@@preview.html', 'mgr:mgrpw')
 
     def testSource(self):



More information about the Zope3-Checkins mailing list