Skip to content

Implement window.queueMicrotask()#1097

Merged
rbri merged 1 commit intoHtmlUnit:masterfrom
duonglaiquang:duong_microTask
Mar 12, 2026
Merged

Implement window.queueMicrotask()#1097
rbri merged 1 commit intoHtmlUnit:masterfrom
duonglaiquang:duong_microTask

Conversation

@duonglaiquang
Copy link
Contributor

This PR does the following

Add queueMicrotask() support for Window and WindowOrWorkerGlobalScopeMixin

* @throws Exception if the test fails
*/
@Test
@Alerts({"TypeError", "TypeError",
Copy link
Member

Choose a reason for hiding this comment

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

can you please split this test into different ones for the different cases

  • called without params
  • called with a unsupported param
  • simple green path
  • ....

Copy link
Member

Choose a reason for hiding this comment

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

over the time having simpler tests makes debugging on regressions simpler/faster

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have fixed the tests could you take a look

@sonarqubecloud
Copy link

@rbri rbri merged commit c4e31e4 into HtmlUnit:master Mar 12, 2026
8 checks passed
@rbri
Copy link
Member

rbri commented Mar 12, 2026

Thanks... as always

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