diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-05-05 20:13:27 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-05-05 20:13:27 -0700 |
commit | 747ab04f3992b120d279b9e2cbe9f6b507afd86c (patch) | |
tree | 7d5dff53f43eda790de804ea967158d1ac99ced7 /tests/runner.py | |
parent | 3de35bb24b392c85e0c2bc646d1150048fa336ec (diff) |
make sdl event handling work in closure, and add testing
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 6e086200..557d1b4d 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -7110,10 +7110,11 @@ elif 'browser' in str(sys.argv): Module['canvas'].dispatchEvent(event1); } } + window['simulateMouseEvent'] = simulateMouseEvent; ''') open(os.path.join(self.get_dir(), 'sdl_mouse.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_mouse.c')).read())) - Popen(['python', EMCC, os.path.join(self.get_dir(), 'sdl_mouse.c'), '-o', 'page.html', '--pre-js', 'pre.js']).communicate() + Popen(['python', EMCC, os.path.join(self.get_dir(), 'sdl_mouse.c'), '-O2', '--minify', '0', '-o', 'page.html', '--pre-js', 'pre.js']).communicate() self.run_browser('page.html', '', '/report_result?740') def test_sdl_audio(self): |