aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-21 14:09:14 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-21 14:09:14 -0800
commitc2396973cd677c6fc80a664175488defcdae2bf8 (patch)
tree774b424b426a598054b2e2dc782f8f4390c61b32 /tests
parent4638b1af11542355a58f89c146aaf8aa49f69c49 (diff)
fix test_scriptaclass
Diffstat (limited to 'tests')
-rw-r--r--tests/runner.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 547aa45c..71ac8922 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -4271,7 +4271,9 @@ def process(filename):
#include "bindingtest.cpp"
'''
- script_src_2 = '''
+ post2 = '''
+def process(filename):
+ script_src_2 = \'\'\'
var sme = new Parent(42);
sme.mulVal(2);
print('*')
@@ -4353,13 +4355,10 @@ def process(filename):
c2.virtualFunc2();
print('*ok*');
- '''
-
- post2 = '''
-def process(filename):
+ \'\'\'
src = open(filename, 'r').read().replace(
'// {{MODULE_ADDITIONS}',
- open(os.path.join(self.get_dir(), 'bindingtest.js')).read() + '\n\n' + script_src_2 + '\n\n' +
+ open('bindingtest.js').read() + '\\n\\n' + script_src_2 + '\\n\\n' +
'// {{MODULE_ADDITIONS}'
)
open(filename, 'w').write(src)