diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-03 15:42:17 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-03 15:44:34 -0800 |
commit | c7ccd83f14bde44767c296da7bd626c12f67c8f7 (patch) | |
tree | a5ebf7ae8708889dd52e9a38446a983749a2c887 | |
parent | c00a68fd1f70cb5b8a3e5faccc37965b59c40972 (diff) |
convert test_sdl_canvas to btest
-rw-r--r-- | tests/test_browser.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/test_browser.py b/tests/test_browser.py index 920c6f8c..21fa395f 100644 --- a/tests/test_browser.py +++ b/tests/test_browser.py @@ -680,10 +680,7 @@ If manually bisecting: self.btest('sdl_stb_image_data.c', reference='screenshot.jpg', args=['-s', 'STB_IMAGE=1', '--preload-file', 'screenshot.not']) def test_sdl_canvas(self): - 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())) - - Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'sdl_canvas.c'), '-o', 'page.html', '-s', 'LEGACY_GL_EMULATION=1']).communicate() - self.run_browser('page.html', '', '/report_result?1') + self.btest('sdl_canvas.c', expected='1', args=['-s', 'LEGACY_GL_EMULATION=1']) def test_sdl_canvas_proxy(self): def post(): |