aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2011-02-12 19:35:45 -0800
committerAlon Zakai <azakai@mozilla.com>2011-02-12 19:35:45 -0800
commitffb61d77cae700fe2f45c60e06715033ae9f653a (patch)
tree1ff4e3c091603dd2a38a9029976a586234a41dfd /tests/runner.py
parent96b74d5914bb6495f4e82cac12ce25c7aedf77a1 (diff)
emscripten_run_script API
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 2da9b9c9..d936f10d 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1131,6 +1131,18 @@ if 'benchmark' not in sys.argv:
'''
self.do_test(src, '*2,2,5,8,8***8,8,5,8,8***7,2,6,990,7,2*', [], lambda x: x.replace('\n', '*'))
+ def test_emscripten_api(self):
+ src = '''
+ #include <stdio.h>
+ #include "emscripten.h"
+
+ int main() {
+ emscripten_run_script("print('hello world' + '!')");
+ return 0;
+ }
+ '''
+ self.do_test(src, 'hello world!')
+
def test_tinyfuncstr(self):
src = '''
#include <stdio.h>