aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-09 17:54:25 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-09 17:54:25 -0700
commitfa307241513ecc2e9a7711c79ed0b3a7e321f686 (patch)
tree3f0b4cb306187897f7a7b3cecb1764eff7a34c14 /tests/runner.py
parentedf26eb8c4704fa07cc7e646b2b9ccd59a698467 (diff)
experimental support for inline js
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 99175b36..477cd29c 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -2339,6 +2339,18 @@ def process(filename):
self.do_run(src, 'hello world!\n*100*', post_build=check)
+ def test_inlinejs(self):
+ src = r'''
+ #include <stdio.h>
+
+ int main() {
+ asm("Module.print('Inline JS is very cool')");
+ return 0;
+ }
+ '''
+
+ self.do_run(src, 'Inline JS is very cool')
+
def test_memorygrowth(self):
# With typed arrays in particular, it is dangerous to use more memory than TOTAL_MEMORY,
# since we then need to enlarge the heap(s).