Skip to content

Conversation

@rbri
Copy link
Collaborator

@rbri rbri commented Dec 8, 2025

This enables the intl402 test for the 262 test suite and also provides a first fix for #535

This is based on a rewritten test262.properties generator because the current impl has some problem and I was not able to fix that in the existing code. Problems are mainly occure when enabling the intl402 test; different from the other test this part has test files at the folder root also. The stats for exluded folders now always available and the order of excluded folders is a bit more natural.

The new version is much slower but i think this is not a real problem with this suite.

Not so many intl402 tests are passing so far but this is a beginning (hopefully)

@gbrail
Copy link
Collaborator

gbrail commented Dec 12, 2025

Well the new test262 framework works, and that's pretty cool. Let me take some time to read it more carefully (I'd be happy if someone else does too) and make sure it still supports the old use cases!

@aardvark179
Copy link
Contributor

I'll try and take a look at this tomorrow.

@gbrail
Copy link
Collaborator

gbrail commented Dec 18, 2025

I think this is good and I appreciate the forward progress. Interested if anyone else wants to look, otherwise I'm happy with it!

@aardvark179
Copy link
Contributor

I think it looks good, I've got some changes to run 262 cases in debug mode which would need some to rebase but it doesn't look too bad.

assertWithAllModes402("\u221e", "Infinity.toLocaleString('ar-SA')");
}

private void assertWithAllModes402(final Object expected, final String script) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these two go in Utils?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@andreabergia
Copy link
Contributor

The new version is much slower but i think this is not a real problem with this suite.

What do you mean? It already takes well over two minutes for me, so "much slower" is really worrying 😅

@rbri
Copy link
Collaborator Author

rbri commented Dec 18, 2025

The new version is much slower but i think this is not a real problem with this suite.

What do you mean? It already takes well over two minutes for me, so "much slower" is really worrying 😅


Ok, have done a test - rewriting the file requires 2s with the new writer. I think it is ok compared to the time you wait

  • for Santa or
  • the test suite itself to finish

@aardvark179
Copy link
Contributor

Yeah, seems fine to me locally, even after enabling the debugger tests.

rbri added 7 commits December 20, 2025 11:11
The current impl has some problem and I was not able to fix that in the existing code. Therefore I wrote a new one. Problems are mainly occure when enabling the intl402 test; different from the other test this part has test files at the folder root also. The stats for exluded folders now always available and the order of excluded folders is a bit more natural.

The new version is much slower but i think this is not a real problem with this suite.
* if 402 is not enabled for the context, ignore the given parameters
* if 402 is enabled, support string locales
@gbrail
Copy link
Collaborator

gbrail commented Jan 1, 2026

Thanks! I've had a chance to look at this and try it and it looks good. I'm not going to "squash" it because it touches a few different things -- it probably would have been a good idea to separate the Test262 rewrite with the other changes, but I'm good. Thanks!

@gbrail gbrail merged commit 77e56a6 into mozilla:master Jan 1, 2026
11 checks passed
@rbri rbri deleted the intl402 branch January 14, 2026 06:01
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.

4 participants