aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-17 14:06:20 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-17 14:06:20 -0700
commit31f73d04a0f1120746e40b7a35b5d609dbc598ab (patch)
tree6475258a71783f670d3a74977adb9c9a188a8657 /tests/runner.py
parentc47a05ce615425df9ecdc1765a753885d707cdea (diff)
parent5b41371bb5897a49e1fdcad18d053f775105c846 (diff)
Merge pull request #1286 from michaeljbishop/looping-audio-test
Added test for SDL_Mix that includes looping audio.
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 73dbab13..e7434479 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -12297,9 +12297,10 @@ elif 'browser' in str(sys.argv):
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'))
+ shutil.copyfile(path_from_root('tests', 'sounds', 'noise.ogg'), os.path.join(self.get_dir(), 'noise.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()))
- 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()
+ Popen([PYTHON, EMCC, '-O2', '--minify', '0', os.path.join(self.get_dir(), 'sdl_audio_mix.c'), '--preload-file', 'sound.ogg', '--preload-file', 'music.ogg', '--preload-file', 'noise.ogg', '-o', 'page.html']).communicate()
self.run_browser('page.html', '', '/report_result?1')
def test_sdl_audio_quickload(self):