aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Pesch <inolen@gmail.com>2013-07-30 17:47:10 -0700
committerAnthony Pesch <inolen@gmail.com>2013-07-30 17:47:10 -0700
commitb5affc3467e69200f199b9b35b920b282982bce7 (patch)
tree10dbec550be05dac199ef70fed244a8e999396a9
parent4088826095f06ae47a00544434d3db6a9fdf323e (diff)
updated test_openal_buffers to use btest
-rwxr-xr-xtests/runner.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 2627d113..663f7d24 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -12245,6 +12245,7 @@ elif 'browser' in str(sys.argv):
'browser.test_sdl_audio_mix',
'browser.test_sdl_audio_quickload',
'browser.test_openal_playback',
+ 'browser.test_openal_buffers',
'browser.test_freealut'
]
@@ -13250,10 +13251,7 @@ Press any key to continue.'''
def test_openal_buffers(self):
shutil.copyfile(path_from_root('tests', 'sounds', 'the_entertainer.wav'), os.path.join(self.get_dir(), 'the_entertainer.wav'))
- open(os.path.join(self.get_dir(), 'openal_buffers.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'openal_buffers.c')).read()))
-
- Popen([PYTHON, EMCC, '-O0', os.path.join(self.get_dir(), 'openal_buffers.c'), '--preload-file', 'the_entertainer.wav', '-o', 'page.html']).communicate()
- self.run_browser('page.html', '', '/report_result?0')
+ self.btest('openal_buffers.c', '0', args=['--preload-file', 'the_entertainer.wav'],)
def test_glfw(self):
open(os.path.join(self.get_dir(), 'glfw.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'glfw.c')).read()))