[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests - test_browserwidget.py:1.6 test_textareawidget.py:1.4

Steve Alexander steve@cat-box.net
Thu, 16 Jan 2003 14:51:02 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/form/tests
In directory cvs.zope.org:/tmp/cvs-serv9670/src/zope/app/browser/form/tests

Modified Files:
	test_browserwidget.py test_textareawidget.py 
Log Message:
Changed form layout from using tables to using divs.



=== Zope3/src/zope/app/browser/form/tests/test_browserwidget.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/form/tests/test_browserwidget.py:1.5	Wed Jan 15 10:44:33 2003
+++ Zope3/src/zope/app/browser/form/tests/test_browserwidget.py	Thu Jan 16 14:50:30 2003
@@ -74,7 +74,8 @@
         label = ''.join(self._widget.label().strip().split())
         value = ''.join(self._widget().strip().split())
         row = ''.join(self._widget.row().strip().split())
-        self.assertEqual(row, '<td>%s</td><td>%s</td>' % (label, value))
+        self.assertEqual(row, '<divclass="label">%s</div>'
+                              '<divclass="field">%s</div>' % (label, value))
 
 
 class TestWidget(BrowserWidget):


=== Zope3/src/zope/app/browser/form/tests/test_textareawidget.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/form/tests/test_textareawidget.py:1.3	Wed Jan 15 10:44:33 2003
+++ Zope3/src/zope/app/browser/form/tests/test_textareawidget.py	Thu Jan 16 14:50:30 2003
@@ -50,8 +50,8 @@
         value = ''.join(self._widget().strip().split())
         row = ''.join(self._widget.row().strip().split())
         self.assertEqual(row,
-                         '<tdcolspan="2">%s<br/>%s</td>' % (label, value))
-
+                         '<divclass="label">%s</div>'
+                         '<divclass="field">%s</div>' % (label, value))
 
 
 def test_suite():