Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for DurationFormat PR 172 and 167 #3912

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

FrankYFTang
Copy link
Contributor

@FrankYFTang FrankYFTang commented Sep 9, 2023

Test the order of resolvedOptions in default setting Also add test to check the reading order of options based on the property returned in the default setting resolvedOptions.

tc39/proposal-intl-duration-format#167

tc39/proposal-intl-duration-format#172

https://tc39.es/proposal-intl-duration-format/#sec-Intl.DurationFormat.prototype.resolvedOptions

These two PRs are presenting to TC39 2023-09 meeting

Copy link
Contributor

@anba anba left a comment

Choose a reason for hiding this comment

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

Tests pass with an implementation of the latest spec draft.

assert.compareArray could be used instead of assert.sameValue, but that's not a blocker preventing to land this PR.

@FrankYFTang
Copy link
Contributor Author

ping

Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

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

Thanks, seems correct but it seems like there's a couple of opportunities to cover more observable effects of the PRs. Can be done in a followup if necessary.

@ptomato
Copy link
Contributor

ptomato commented Jul 24, 2024

@FrankYFTang Do you want to address the above comments or postpone them to a followup?

@FrankYFTang
Copy link
Contributor Author

@FrankYFTang Do you want to address the above comments or postpone them to a followup?

I will address that later

Test the order of resolvedOptions in default setting
Also add test to check the reading order of options based on the
property returned in the default setting resolvedOptions.

tc39/proposal-intl-duration-format#167
tc39/proposal-intl-duration-format#172
https://tc39.es/proposal-intl-duration-format/#sec-Intl.DurationFormat.prototype.resolvedOptions

These two PRs are presenting to TC39 2023-09 meeting

Swap actual/expected order

Update test/intl402/DurationFormat/constructor-option-read-order.js

Co-authored-by: André Bargull <[email protected]>

Fix per anba suggestion
@ptomato ptomato merged commit 12416e0 into tc39:main Jul 24, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants