diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-27 15:21:23 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-27 15:39:35 -0700 |
commit | f88f3af21789291021d54fbf1fe51d2f107e6267 (patch) | |
tree | 384bf8a973bdf5f338cb6039b04bd3b0a9049d04 /tests/runner.py | |
parent | e9dfb4115d9a79121063d88bcac33362842dbebe (diff) |
do not use blob constructor if not present, and closure workaround
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 6f94e6e2..cd4cd3bd 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -6450,7 +6450,8 @@ f.close() 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', '--preload-file', 'sound2.wav', '-o', 'page.html']).communicate() + # 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.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_worker(self): |