Skip to content

Commit 50085da

Browse files
committed
test_browser.py; Remove duplicate copy of post_manual_reftest. NFC
1 parent 8c047b1 commit 50085da

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

tests/test_browser.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3140,29 +3140,8 @@ def test_sdl2_image_prepare_data(self):
31403140

31413141
@requires_graphics_hardware
31423142
def test_sdl2_canvas_proxy(self):
3143-
def post():
3144-
html = read_file('test.html')
3145-
html = html.replace('</body>', '''
3146-
<script>
3147-
function assert(x, y) { if (!x) throw 'assertion failed ' + y }
3148-
3149-
%s
3150-
3151-
var windowClose = window.close;
3152-
window.close = function() {
3153-
// wait for rafs to arrive and the screen to update before reftesting
3154-
setTimeout(function() {
3155-
doReftest();
3156-
setTimeout(windowClose, 5000);
3157-
}, 1000);
3158-
};
3159-
</script>
3160-
</body>''' % read_file('reftest.js'))
3161-
create_file('test.html', html)
3162-
31633143
create_file('data.txt', 'datum')
3164-
3165-
self.btest('sdl2_canvas_proxy.c', reference='sdl2_canvas.png', args=['-sUSE_SDL=2', '--proxy-to-worker', '--preload-file', 'data.txt', '-sGL_TESTING'], manual_reference=True, post_build=post)
3144+
self.btest('sdl2_canvas_proxy.c', reference='sdl2_canvas.png', args=['-sUSE_SDL=2', '--proxy-to-worker', '--preload-file', 'data.txt', '-sGL_TESTING'], manual_reference=True, post_build=self.post_manual_reftest)
31663145

31673146
def test_sdl2_pumpevents(self):
31683147
# key events should be detected using SDL_PumpEvents

0 commit comments

Comments
 (0)