diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-15 16:49:37 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-15 16:49:37 -0700 |
commit | 470919bea98605f382f82a0ff76f53cb0faa4f90 (patch) | |
tree | 1acc8b38a23bfbfa6184a7004ebecf83b47c1346 /tests/runner.py | |
parent | 36afa3f0eb2b3d63bcab798bc8ee1caceae08e2b (diff) |
almost working SDL_image test, just need async decoding
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index 4121bb6c..0eca1598 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -6279,7 +6279,18 @@ f.close() self.run_browser('page.html', 'You should see two cool numbers', '/report_result?1') def test_emcc_sdl_image(self): - pass # load an image file, say jpg, get pixel data + # load an image file, get pixel data + + return self.skip('decoding is async, we need sync...') + + shutil.copyfile(path_from_root('tests', 'screenshot.jpg'), os.path.join(self.get_dir(), 'screenshot.jpg')) + shutil.copyfile(path_from_root('tests', 'sdl_image.c'), os.path.join(self.get_dir(), 'sdl_image.c')) + + Popen([EMCC, os.path.join(self.get_dir(), 'sdl_image.c'), '--preload-file', 'screenshot.jpg', '-o', 'page.html']).communicate() + self.run_browser('page.html', 'You should see |load me right before|.', '/report_result?1') + + def test_emcc_compression(self): + pass # test compression of both the compiled code itself in a side file, and of data files def test_emcc_worker(self): # Test running in a web worker |