[Zope3-checkins]
SVN: Zope3/branches/benji-testbrowser-with-real-browsers/src/zope/testbrowser/
document another race condition and a bug
Benji York
benji at zope.com
Mon Jul 24 09:25:48 EDT 2006
Log message for revision 69249:
document another race condition and a bug
Changed:
U Zope3/branches/benji-testbrowser-with-real-browsers/src/zope/testbrowser/ftests/reallayer.py
U Zope3/branches/benji-testbrowser-with-real-browsers/src/zope/testbrowser/real.txt
-=-
Modified: Zope3/branches/benji-testbrowser-with-real-browsers/src/zope/testbrowser/ftests/reallayer.py
===================================================================
--- Zope3/branches/benji-testbrowser-with-real-browsers/src/zope/testbrowser/ftests/reallayer.py 2006-07-24 03:13:31 UTC (rev 69248)
+++ Zope3/branches/benji-testbrowser-with-real-browsers/src/zope/testbrowser/ftests/reallayer.py 2006-07-24 13:25:47 UTC (rev 69249)
@@ -60,7 +60,7 @@
def stopZope(self):
"""tell Zope to stop and wait for it to do so"""
- import time; time.sleep(1)
+ import time; time.sleep(1) # XXX work around race condition
ThreadedAsync.LoopCallback.exit_status = 0
self.zope_thread.join()
os.remove(self.conf_path)
Modified: Zope3/branches/benji-testbrowser-with-real-browsers/src/zope/testbrowser/real.txt
===================================================================
--- Zope3/branches/benji-testbrowser-with-real-browsers/src/zope/testbrowser/real.txt 2006-07-24 03:13:31 UTC (rev 69248)
+++ Zope3/branches/benji-testbrowser-with-real-browsers/src/zope/testbrowser/real.txt 2006-07-24 13:25:47 UTC (rev 69249)
@@ -36,6 +36,22 @@
>>> browser.url
u'http://localhost:23123/'
+Reload works.
+
+ >>> original_contents = browser.contents
+ >>> browser.reload()
+ >>> original_contents == browser.contents
+ True
+
+
+goBack doesn't work. XXX
+
+ >>> browser.getLink('[top]', index=0).click()
+ >>> browser.goBack()
+ >>> import time; time.sleep(1) # XXX race condition
+ >>> original_contents == browser.contents
+ False
+
When we're done with the browser we have to close it.
>>> browser.close()
More information about the Zope3-Checkins
mailing list