summaryrefslogtreecommitdiff
path: root/test/monkeyfarmer.py
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-06-06 17:16:23 +0100
committerVincent Sanders <vince@kyllikki.org>2019-06-06 17:17:27 +0100
commitc74c8332acc3e323565281f3f2774bf088a6a882 (patch)
treeb7e5fd4e4d5011a923dc88ccdf39fafcc32d3f7d /test/monkeyfarmer.py
parenteeeca4b712cd99290348a37f143535c3c33fb116 (diff)
downloadnetsurf-c74c8332acc3e323565281f3f2774bf088a6a882.tar.gz
netsurf-c74c8332acc3e323565281f3f2774bf088a6a882.tar.bz2
allow monkey tests to stop navigation
Diffstat (limited to 'test/monkeyfarmer.py')
-rw-r--r--test/monkeyfarmer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/monkeyfarmer.py b/test/monkeyfarmer.py
index 539fab597..08465f842 100644
--- a/test/monkeyfarmer.py
+++ b/test/monkeyfarmer.py
@@ -359,6 +359,9 @@ class BrowserWindow:
self.winid, url, referer))
self.wait_start_loading()
+ def stop(self):
+ self.browser.farmer.tell_monkey("WINDOW STOP %s" % (self.winid))
+
def reload(self):
self.browser.farmer.tell_monkey("WINDOW RELOAD %s" % self.winid)