diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-20 17:22:51 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-20 17:22:51 -0800 |
commit | 702cf8f1e8a173a15a745c5ac3bae654c99fe33c (patch) | |
tree | 5046a3c593d3d990c824a82c30a666918a8844a6 /tests/test_browser.py | |
parent | 4afedfb8ed66cc1aa95ff515baee3f2c762f63c2 (diff) | |
parent | eb27ff87ae15d0dd9855b06a055b590235d8c3a6 (diff) |
Merge pull request #1635 from juj/emscripten_log
emscripten_log() and emscripten_get_callstack()
Diffstat (limited to 'tests/test_browser.py')
-rw-r--r-- | tests/test_browser.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_browser.py b/tests/test_browser.py index bdb48d97..30d3b930 100644 --- a/tests/test_browser.py +++ b/tests/test_browser.py @@ -119,6 +119,13 @@ If manually bisecting: Even better, add a breakpoint, e.g. on the printf, then reload, then step through and see the print (best to run with EM_SAVE_DIR=1 for the reload). ''' + def test_emscripten_log(self): + src = os.path.join(self.get_dir(), 'src.cpp') + open(src, 'w').write(self.with_report_result(open(path_from_root('tests', 'emscripten_log', 'emscripten_log.cpp')).read())) + + Popen([PYTHON, EMCC, src, '--pre-js', path_from_root('src', 'emscripten-source-map.min.js'), '-g', '-o', 'page.html']).communicate() + self.run_browser('page.html', None, '/report_result?1') + def build_native_lzma(self): lzma_native = path_from_root('third_party', 'lzma.js', 'lzma-native') if os.path.isfile(lzma_native) and os.access(lzma_native, os.X_OK): return |