Fix (now less fragile).

This commit is contained in:
James Taylor
2007-06-29 00:27:24 +00:00
parent 3ba107decc
commit b34117a256
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -9,6 +9,7 @@
#if $refresh
<meta http-equiv="refresh" content="10">
<!-- running: do not change this comment, used by TwillTestCase.wait -->
#end if
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+1 -1
View File
@@ -290,7 +290,7 @@ class TwillTestCase(unittest.TestCase):
count += 1
tc.go("./history")
page = tc.browser.get_html()
if page.find('add_refresh( 9 );') > -1:
if page.find( '<!-- running: do not change this comment, used by TwillTestCase.wait -->' ) > -1:
time.sleep( sleep_amount )
sleep_amount += 1
else: