Skip to content

Commit c7ccd83

Browse files
committedJan 3, 2014
convert test_sdl_canvas to btest
1 parent c00a68f commit c7ccd83

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎tests/test_browser.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -680,10 +680,7 @@ def test_sdl_stb_image_data(self):
680680
self.btest('sdl_stb_image_data.c', reference='screenshot.jpg', args=['-s', 'STB_IMAGE=1', '--preload-file', 'screenshot.not'])
681681

682682
def test_sdl_canvas(self):
683-
open(os.path.join(self.get_dir(), 'sdl_canvas.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_canvas.c')).read()))
684-
685-
Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'sdl_canvas.c'), '-o', 'page.html', '-s', 'LEGACY_GL_EMULATION=1']).communicate()
686-
self.run_browser('page.html', '', '/report_result?1')
683+
self.btest('sdl_canvas.c', expected='1', args=['-s', 'LEGACY_GL_EMULATION=1'])
687684

688685
def test_sdl_canvas_proxy(self):
689686
def post():

0 commit comments

Comments
 (0)
Please sign in to comment.