diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-06-25 20:41:56 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-06-25 20:41:56 -0700 |
commit | 6c4cc9b0b8e1f6451fc4d376ef8260979f169c05 (patch) | |
tree | c3bdbb2d2da8a91c8678a295f8326b6477f89c20 /tests/runner.py | |
parent | d1b22871c34dc9b0d5ea88f991602666d9143011 (diff) | |
parent | 5940f3189736ba5a935b35485feac1d0ec00f7fc (diff) |
Merge pull request #490 from ehsan/audio
Implement Mix_QuickLoad_RAW
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 89ea2099..08086e2f 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -7649,6 +7649,13 @@ elif 'browser' in str(sys.argv): Popen(['python', EMCC, '-O2', '--minify', '0', os.path.join(self.get_dir(), 'sdl_audio.c'), '--preload-file', 'sound.ogg', '--preload-file', 'sound2.wav', '-o', 'page.html', '-s', 'EXPORTED_FUNCTIONS=["_main", "_play", "_play2"]']).communicate() self.run_browser('page.html', '', '/report_result?1') + def test_sdl_audio_quickload(self): + open(os.path.join(self.get_dir(), 'sdl_audio_quickload.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_audio_quickload.c')).read())) + + # use closure to check for a possible bug with closure minifying away newer Audio() attributes + Popen(['python', EMCC, '-O2', '--minify', '0', os.path.join(self.get_dir(), 'sdl_audio_quickload.c'), '-o', 'page.html', '-s', 'EXPORTED_FUNCTIONS=["_main", "_play"]']).communicate() + self.run_browser('page.html', '', '/report_result?1') + def test_sdl_gl_read(self): # SDL, OpenGL, readPixels open(os.path.join(self.get_dir(), 'sdl_gl_read.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_gl_read.c')).read())) |