aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-10 19:58:29 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-10-10 19:58:29 -0700
commitd07a37e39426f7051fcca1aab13beba2d7ec0956 (patch)
treedf63381df12aee31523a6e97a737ecc3001dbddf /tests
parent37347e52fc6b7110783efba5fad19c195dd375ec (diff)
EMSCRIPTEN_COMMENT for source comments
Diffstat (limited to 'tests')
-rw-r--r--tests/runner.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 3f124df7..bf71cf2c 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1430,11 +1430,17 @@ if 'benchmark' not in str(sys.argv):
#include "emscripten.h"
int main() {
+ EMSCRIPTEN_COMMENT("hello from the source");
emscripten_run_script("print('hello world' + '!')");
return 0;
}
'''
- self.do_test(src, 'hello world!')
+
+ def check(filename):
+ src = open(filename, 'r').read()
+ assert '// hello from the source' in src
+
+ self.do_test(src, 'hello world!', post_build=check)
def test_ssr(self): # struct self-ref
src = '''