diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_browser.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_browser.py b/tests/test_browser.py index c2dbf49b..c1d1caab 100644 --- a/tests/test_browser.py +++ b/tests/test_browser.py @@ -747,8 +747,11 @@ function assert(x, y) { if (!x) throw 'assertion failed ' + y } var windowClose = window.close; window.close = function() { - doReftest(); - setTimeout(windowClose, 1000); + // wait for rafs to arrive and the screen to update before reftesting + setTimeout(function() { + doReftest(); + setTimeout(windowClose, 1000); + }, 1000); }; </script> </body>''' % open('reftest.js').read()) |