Skip to content

Fix emrun.test_no_browser to launch a browser using the BrowserCore harness#26789

Open
juj wants to merge 1 commit intoemscripten-core:mainfrom
juj:fix_emrun_test_no_browser
Open

Fix emrun.test_no_browser to launch a browser using the BrowserCore harness#26789
juj wants to merge 1 commit intoemscripten-core:mainfrom
juj:fix_emrun_test_no_browser

Conversation

@juj
Copy link
Copy Markdown
Collaborator

@juj juj commented Apr 26, 2026

Fix emrun.test_no_browser to launch a browser using the BrowserCore harness, so that Firefox/Chrome/Safari will be launched with the appropriate startup flags (and not e.g. try to autoupdate, or show modal user prompts during the test run)

…arness, so that Firefox/Chrome/Safari will be launched with the appropriate startup flags (and not e.g. try to autoupdate, or show modal user prompts during the test run)
@sbc100
Copy link
Copy Markdown
Collaborator

sbc100 commented Apr 26, 2026

Can you try re-enabling these tests first? See #26790 (comment)

@juj
Copy link
Copy Markdown
Collaborator Author

juj commented Apr 26, 2026

Here's a run of emrun suite on Linux and macOS:

http://clbri.com:8010/#/builders/11/builds/1479

http://clbri.com:8010/#/builders/13/builds/325

The emrun suite passes after these fixes. I don't think we want to enable red tests on CircleCI, but first fix, and then enable?

@sbc100
Copy link
Copy Markdown
Collaborator

sbc100 commented Apr 26, 2026

I would hope we can enable them at the same time as fixing them.

Comment thread test/test_browser.py
browser = subprocess.Popen(browser_cmd + ['http://localhost:3333/hello_world.html'])
url = 'http://localhost:3333/hello_world.html?argv0'
print(f'Starting browser to {url}')
BrowserCore.browser_open(url)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this static method useful outside the BrowserCore test class maybe we should move it outside? We already have test/browser_common.py for such things I guess?

Also, I wonder if we should move this whole class out into test_emrun.py?

Neither of these need to be part of this PR, just thoughts out how to improve things going forward.

Copy link
Copy Markdown
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, but can we enable at emrun tests in circleci as part of this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants