File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2236,6 +2236,9 @@ def log_request(code=0, size=0):
2236
2236
2237
2237
# allows streaming compilation to work
2238
2238
SimpleHTTPRequestHandler .extensions_map ['.wasm' ] = 'application/wasm'
2239
+ # Firefox browser security does not allow loading .mjs files if they
2240
+ # do not have the correct MIME type
2241
+ SimpleHTTPRequestHandler .extensions_map ['.mjs' ] = 'text/javascript'
2239
2242
2240
2243
httpd = HTTPServer (('localhost' , port ), TestServerHandler )
2241
2244
httpd .serve_forever () # test runner will kill us
@@ -2323,9 +2326,10 @@ def is_browser_test(self):
2323
2326
2324
2327
def assert_out_queue_empty (self , who ):
2325
2328
if not self .harness_out_queue .empty ():
2329
+ responses = []
2326
2330
while not self .harness_out_queue .empty ():
2327
- self .harness_out_queue .get ()
2328
- raise Exception ('excessive responses from %s' % who )
2331
+ responses += [ self .harness_out_queue .get ()]
2332
+ raise Exception ('excessive responses from %s: %s ' % ( who , ' \n ' . join ( responses )) )
2329
2333
2330
2334
# @param extra_tries: how many more times to try this test, if it fails. browser tests have
2331
2335
# many more causes of flakiness (in particular, they do not run
You can’t perform that action at this time.
0 commit comments