Skip to content

Commit c099bbb

Browse files
committed
improve and fix browser.test_locate_file, which was missing a move of a crucial file
1 parent 1a650f1 commit c099bbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_browser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2413,7 +2413,8 @@ def test_locate_file(self):
24132413
''')
24142414

24152415
def in_html(expected, args=[]):
2416-
Popen([PYTHON, EMCC, 'src.cpp', '-O2', '-g', '--shell-file', 'shell.html', '--pre-js', 'data.js', '-o', 'page.html'] + args).communicate()
2416+
Popen([PYTHON, EMCC, 'src.cpp', '-O2', '-g', '--shell-file', 'shell.html', '--pre-js', 'data.js', '-o', 'page.html', '-s', 'SAFE_HEAP=1', '-s', 'ASSERTIONS=1'] + args).communicate()
2417+
shutil.move('page.html.mem', os.path.join('sub', 'page.html.mem'))
24172418
self.run_browser('page.html', None, '/report_result?' + expected)
24182419

24192420
in_html('1')

0 commit comments

Comments
 (0)