diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-21 11:30:23 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-21 11:30:23 -0800 |
commit | 6b0f2fa2123dbd24890a10ffe4880fa0b018e4d4 (patch) | |
tree | cbbd9971d95e9705e224655ea0eb16de720f4c11 /tests/test_browser.py | |
parent | 09a848a0771550c95df8b3566efdfde5e80803a9 (diff) |
make canvas proxy test less flaky
Diffstat (limited to 'tests/test_browser.py')
-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()) |