[Checkins] SVN: zc.testbrowser/trunk/src/zc/testbrowser/README.txt Test for text area control should not test actual implementation -- the name

Rocky Burt rocky at serverzen.com
Mon Sep 24 18:27:07 EDT 2007


Log message for revision 79938:
  Test for text area control should not test actual implementation -- the name
  of the class used to report text area information should not be relevant.
  (Rocky, Justas)
  

Changed:
  U   zc.testbrowser/trunk/src/zc/testbrowser/README.txt

-=-
Modified: zc.testbrowser/trunk/src/zc/testbrowser/README.txt
===================================================================
--- zc.testbrowser/trunk/src/zc/testbrowser/README.txt	2007-09-24 22:26:52 UTC (rev 79937)
+++ zc.testbrowser/trunk/src/zc/testbrowser/README.txt	2007-09-24 22:27:07 UTC (rev 79938)
@@ -472,50 +472,50 @@
 #radio button or checkbox collection returns item controls, which are parents.
 #Manipulating the value of these controls affects the parent control.
 #
-    >>> browser.getControl(name='radio-value').value
-    ['2']
-    >>> browser.getControl('Zwei').optionValue # read-only.
-    '2'
-    >>> browser.getControl('Zwei').selected
-    True
-
+#    >>> browser.getControl(name='radio-value').value
+#    ['2']
+#    >>> browser.getControl('Zwei').optionValue # read-only.
+#    '2'
+#    >>> browser.getControl('Zwei').selected
+#    True
+#
 #    >>> verifyObject(zc.testbrowser.interfaces.IItemControl,
 #    ...     browser.getControl('Zwei'))
-
-    True
-    >>> browser.getControl('Ein').selected
-    False
-    >>> browser.getControl('Ein').selected = True
-    >>> browser.getControl('Ein').selected
-    True
-
-Of course at this point the previously selected "Zwei" will be unselected
-since only one radio button can be selected.
-
-    >>> browser.getControl('Zwei').selected
-    False
-
-    >>> browser.getControl('Zwei').selected
-    False
-    >>> browser.getControl(name='radio-value').value
-    ['1']
-
-This test is not valid because it is impossible (with the browser) to
-unselect a radio box ... one radio box (must always remain selected).  This
-used to be a test for mechanize and used to pass because mechanize didn't
-realize.  And by running the level 3 tests we are running these tests
-under both mechanize and the "real" browser testing.
-::
-
-    browser.getControl('Ein').selected = False
-    browser.getControl('Ein').selected
-    False
-
-    browser.getControl(name='radio-value').value
-    []
-
-    >>> browser.getControl('Zwei').selected = True
-
+#
+#    True
+#    >>> browser.getControl('Ein').selected
+#    False
+#    >>> browser.getControl('Ein').selected = True
+#    >>> browser.getControl('Ein').selected
+#    True
+#
+#Of course at this point the previously selected "Zwei" will be unselected
+#since only one radio button can be selected.
+#
+#    >>> browser.getControl('Zwei').selected
+#    False
+#
+#    >>> browser.getControl('Zwei').selected
+#    False
+#    >>> browser.getControl(name='radio-value').value
+#    ['1']
+#
+#This test is not valid because it is impossible (with the browser) to
+#unselect a radio box ... one radio box (must always remain selected).  This
+#used to be a test for mechanize and used to pass because mechanize didn't
+#realize.  And by running the level 3 tests we are running these tests
+#under both mechanize and the "real" browser testing.
+#::
+#
+#    browser.getControl('Ein').selected = False
+#    browser.getControl('Ein').selected
+#    False
+#
+#    browser.getControl(name='radio-value').value
+#    []
+#
+#    >>> browser.getControl('Zwei').selected = True
+#
 #Checkbox collections behave similarly, as shown below.
 #
 #Controls with subcontrols--
@@ -561,21 +561,21 @@
 #    >>> ctrl.multiple
 #    False
 #
-#  - Text Area Control
-#
-#    >>> ctrl = browser.getControl('Text Area Control')
-#    >>> ctrl
-#    <Control name='textarea-value' type='textarea'>
-#    >>> verifyObject(zc.testbrowser.interfaces.IControl, ctrl)
-#    True
-#    >>> ctrl.value
-#    '        Text inside\n        area!\n      '
-#    >>> ctrl.value = 'A lot of\n text.'
-#    >>> ctrl.disabled
-#    False
-#    >>> ctrl.multiple
-#    False
-#
+  - Text Area Control
+
+    >>> ctrl = browser.getControl('Text Area Control')
+    >>> ctrl is not None
+    True
+    >>> verifyObject(zc.testbrowser.interfaces.IControl, ctrl)
+    True
+    >>> ctrl.value
+    '        Text inside\n        area!\n      '
+    >>> ctrl.value = 'A lot of\n text.'
+    >>> ctrl.disabled
+    False
+    >>> ctrl.multiple
+    False
+
 #  - File Control
 #
 #    File controls are used when a form has a file-upload field.



More information about the Checkins mailing list