[Zope3-checkins] SVN: Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ Tests for reload() and goBack(); found and fixed a bug while doing this.

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Jul 27 15:34:38 EDT 2005


Log message for revision 37497:
  Tests for reload() and goBack(); found and fixed a bug while doing this.
  

Changed:
  U   Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/README.txt
  U   Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/browser.py

-=-
Modified: Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/README.txt
===================================================================
--- Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/README.txt	2005-07-27 19:19:19 UTC (rev 37496)
+++ Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/README.txt	2005-07-27 19:34:38 UTC (rev 37497)
@@ -226,6 +226,35 @@
     ...
 
 
+Other Navigation
+----------------
+
+Like in any normal browser, you can reload a page:
+
+    >>> browser.open('http://localhost/@@/testbrowser/simple.html')
+    >>> browser.url
+    'http://localhost/@@/testbrowser/simple.html'
+    >>> browser.reload()
+    >>> browser.url
+    'http://localhost/@@/testbrowser/simple.html'
+
+You can also go back:
+
+    >>> browser.open('http://localhost/@@/testbrowser/notitle.html')
+    >>> browser.url
+    'http://localhost/@@/testbrowser/notitle.html'
+    >>> browser.goBack()
+    >>> browser.url
+    'http://localhost/@@/testbrowser/simple.html'
+
+
+Controls
+--------
+
+One of the most important features of the browser is the ability to inspect
+and fill in values for the controls of input forms.
+
+
 Forms
 -----
 

Modified: Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/browser.py
===================================================================
--- Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/browser.py	2005-07-27 19:19:19 UTC (rev 37496)
+++ Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/browser.py	2005-07-27 19:34:38 UTC (rev 37497)
@@ -109,7 +109,7 @@
 
     def goBack(self, count=1):
         """See zope.app.testing.testbrowser.interfaces.IBrowser"""
-        self.mech_browser.back(self, count)
+        self.mech_browser.back(count)
         self._changed()
 
     def addHeader(self, key, value):



More information about the Zope3-Checkins mailing list