diff --git a/test/test_browser.py b/test/test_browser.py index 186bad2d23580..fbb2b3e4d59bb 100644 --- a/test/test_browser.py +++ b/test/test_browser.py @@ -3063,13 +3063,7 @@ def test_sdl2_canvas_write(self): @requires_graphics_hardware def test_sdl2_gl_frames_swap(self): - def post_build(): - self.post_manual_reftest() - reftest = read_file('reftest.js') - reftest2 = reftest.replace("Module['postRun'] = doReftest;", '') # we don't want the very first frame - assert reftest != reftest2 - create_file('reftest.js', reftest2) - self.reftest('test_sdl2_gl_frames_swap.c', 'test_sdl2_gl_frames_swap.png', args=['--proxy-to-worker', '-sGL_TESTING', '-sUSE_SDL=2'], manual_reference=True, post_build=post_build) + self.reftest('test_sdl2_gl_frames_swap.c', 'test_sdl2_gl_frames_swap.png', args=['--proxy-to-worker', '-sGL_TESTING', '-sUSE_SDL=2'], manual_reference=True, post_build=self.post_manual_reftest) @requires_graphics_hardware def test_sdl2_ttf(self):