diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-11 12:27:07 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-11 12:27:07 -0700 |
commit | 4b2e7f4c10ab3f39012e4f7789ced834b14fc697 (patch) | |
tree | 98273aad127f7cdc9119a32751303a53c310c879 /tests/runner.py | |
parent | 05cff2488488207978871fb81bd3949869f6d204 (diff) | |
parent | 81cdeaa3766e34acfb2f5cbaa25cf71d7d761bcc (diff) |
Merge pull request #936 from michaeljbishop/add-mix-reservechannels
Add Mix_ReserveChannels
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index eb0f8e7b..d46ca369 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -10779,6 +10779,15 @@ 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', '--preload-file', 'bad.ogg', '-o', 'page.html', '-s', 'EXPORTED_FUNCTIONS=["_main", "_play", "_play2"]']).communicate() self.run_browser('page.html', '', '/report_result?1') + def test_sdl_audio_mix(self): + shutil.copyfile(path_from_root('tests', 'sounds', 'pluck.ogg'), os.path.join(self.get_dir(), 'sound.ogg')) + shutil.copyfile(path_from_root('tests', 'sounds', 'the_entertainer.ogg'), os.path.join(self.get_dir(), 'music.ogg')) + open(os.path.join(self.get_dir(), 'sdl_audio_mix.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_audio_mix.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_mix.c'), '--preload-file', 'sound.ogg', '--preload-file', 'music.ogg', '-o', 'page.html']).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())) |