Skip to content

Commit 8c30be5

Browse files
committed
[test] Enable stdout/stderr logging by default in browser tests
1 parent c05d5fd commit 8c30be5

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3936
1+
4106

test/browser_reporting.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Set this to true to have stdout and stderr sent back to the server
2-
var captureStdoutStderr = false;
2+
var captureStdoutStderr = true;
33

44
var hasModule = typeof Module === 'object' && Module;
55

6-
var reportingURL = 'http://localhost:8888/';
6+
var reportingURL = 'http://localhost:8888';
77

88
async function reportResultToServer(result) {
99
if (reportResultToServer.reported) {

test/common.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2127,7 +2127,9 @@ def do_POST(self):
21272127
self.send_response(200)
21282128
self.end_headers()
21292129
else:
2130-
print(f'do_POST: unexpected POST: {urlinfo.query}')
2130+
print(f'do_POST: unexpected POST: {self.path} {urlinfo}')
2131+
self.send_response(404)
2132+
self.end_headers()
21312133

21322134
def do_GET(self):
21332135
info = urlparse(self.path)

tools/link.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ def phase_linker_setup(options, linker_args): # noqa: C901, PLR0912, PLR0915
800800
def limit_incoming_module_api():
801801
if options.oformat == OFormat.HTML and options.shell_path == DEFAULT_SHELL_HTML:
802802
# Out default shell.html file has minimal set of INCOMING_MODULE_JS_API elements that it expects
803-
default_setting('INCOMING_MODULE_JS_API', 'canvas,monitorRunDependencies,onAbort,onExit,print,setStatus'.split(','))
803+
default_setting('INCOMING_MODULE_JS_API', 'canvas,monitorRunDependencies,onAbort,onExit,print,printErr,setStatus'.split(','))
804804
else:
805805
default_setting('INCOMING_MODULE_JS_API', [])
806806

0 commit comments

Comments
 (0)