diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-19 21:23:31 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-19 21:23:31 -0800 |
commit | 2f4dc08300f2643edd673e452e31d81bbbca061f (patch) | |
tree | 218b479e91cd8d3da7709a8d5f6bac270ff7ad0c /tests | |
parent | be11d5cf932bcdce127afe78f28625a3e1c349a0 (diff) |
fix test_api_browser for asm
Diffstat (limited to 'tests')
-rw-r--r-- | tests/emscripten_api_browser.cpp | 2 | ||||
-rwxr-xr-x | tests/runner.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/emscripten_api_browser.cpp b/tests/emscripten_api_browser.cpp index b35fbac2..18046ca3 100644 --- a/tests/emscripten_api_browser.cpp +++ b/tests/emscripten_api_browser.cpp @@ -68,7 +68,7 @@ void second(void *arg) { printf("sacond! %d\n", now); assert(fabs(now - last - 500) < 250); last = now; - emscripten_async_run_script("_third()", 1000); + emscripten_async_run_script("Module._third()", 1000); } } diff --git a/tests/runner.py b/tests/runner.py index ee6b7c7c..eac2aa7f 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -10195,7 +10195,7 @@ elif 'browser' in str(sys.argv): self.run_browser('test.html', '.', ['/report_result?' + e for e in expected]) def test_emscripten_api(self): - self.btest('emscripten_api_browser.cpp', '1') + self.btest('emscripten_api_browser.cpp', '1', args=['-s', '''EXPORTED_FUNCTIONS=['_main', '_third']''']) def test_emscripten_api_infloop(self): self.btest('emscripten_api_browser_infloop.cpp', '7') |