diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-27 13:24:49 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-27 13:24:49 -0700 |
commit | 7450114c4d6c3cac7c262f72f04bb7b1ac72e674 (patch) | |
tree | 22eff2ff392dfd551a20251d1b85aa6ff9307314 /tests/runner.py | |
parent | e39cb11407e0d646dca3cbea244ce4189680aa4a (diff) |
support wav and mp3 audio suffixes too
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index 1db6d3a7..6f94e6e2 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -6447,9 +6447,10 @@ f.close() def test_sdl_audio(self): shutil.copyfile(path_from_root('tests', 'sounds', 'alarmvictory_1.ogg'), os.path.join(self.get_dir(), 'sound.ogg')) + shutil.copyfile(path_from_root('tests', 'sounds', 'alarmcreatemiltaryfoot_1.wav'), os.path.join(self.get_dir(), 'sound2.wav')) open(os.path.join(self.get_dir(), 'sdl_audio.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_audio.c')).read())) - Popen(['python', EMCC, os.path.join(self.get_dir(), 'sdl_audio.c'), '--preload-file', 'sound.ogg', '-o', 'page.html']).communicate() + Popen(['python', EMCC, os.path.join(self.get_dir(), 'sdl_audio.c'), '--preload-file', 'sound.ogg', '--preload-file', 'sound2.wav', '-o', 'page.html']).communicate() self.run_browser('page.html', '', '/report_result?1') def test_worker(self): |