diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-15 18:15:12 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-15 18:15:12 -0700 |
commit | 3fc8b5c9b7fd5393d936caad6a9ceb1923509fe6 (patch) | |
tree | e4ea021dc7a2bd88bc2b19223800e3ba9a2687e0 /tests | |
parent | 7e78583ff2d44d669d969054e46167a0fb865b21 (diff) |
preload images for SDL
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/runner.py b/tests/runner.py index 0eca1598..4fc8cfa9 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -6280,14 +6280,11 @@ f.close() def test_emcc_sdl_image(self): # 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')) + open(os.path.join(self.get_dir(), 'sdl_image.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_image.c')).read())) 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') + self.run_browser('page.html', 'You should see |load me right before|.', '/report_result?600') def test_emcc_compression(self): pass # test compression of both the compiled code itself in a side file, and of data files |