From 6b0f2fa2123dbd24890a10ffe4880fa0b018e4d4 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 21 Feb 2014 11:30:23 -0800 Subject: make canvas proxy test less flaky --- tests/test_browser.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/test_browser.py') 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); }; ''' % open('reftest.js').read()) -- cgit v1.2.3-18-g5258