aboutsummaryrefslogtreecommitdiff
path: root/tests/test_browser.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-01 12:32:11 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-03 14:41:31 -0700
commit35386a61513fe7c9f49eefb7075f0c4dc7953e81 (patch)
tree90da3d69a9275afc181878ea311f6f2d0a631ebd /tests/test_browser.py
parent822f067c66055cb1c7406a2f08e1f377ff30cf31 (diff)
add browser module test
Diffstat (limited to 'tests/test_browser.py')
-rw-r--r--tests/test_browser.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_browser.py b/tests/test_browser.py
index a0c4dceb..b014b4f6 100644
--- a/tests/test_browser.py
+++ b/tests/test_browser.py
@@ -1404,3 +1404,8 @@ If manually bisecting:
def test_emscripten_async_wget2(self):
self.btest('http.cpp', expected='0', args=['-I' + path_from_root('tests')])
+
+ def test_module(self):
+ Popen([PYTHON, EMCC, path_from_root('tests', 'browser_module.cpp'), '-o', 'module.js', '-O2', '-s', 'SIDE_MODULE=1', '-s', 'DLOPEN_SUPPORT=1', '-s', 'EXPORTED_FUNCTIONS=["_one", "_two"]']).communicate()
+ self.btest('browser_main.cpp', args=['-O2', '-s', 'MAIN_MODULE=1', '-s', 'DLOPEN_SUPPORT=1'], expected='8')
+