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

Update Intl.DurationFormat tests #3983

Merged
merged 5 commits into from
Apr 23, 2024
Merged

Update Intl.DurationFormat tests #3983

merged 5 commits into from
Apr 23, 2024

Commits on Apr 23, 2024

  1. Sync partitionDurationFormatPattern with latest spec draft

    Sync `partitionDurationFormatPattern` with the latest spec draft and
    change it to use an `Intl.DurationFormat` object as the input, so it's
    easier to compare it against the spec text and because it allows to test
    more inputs.
    
    Includes the fixes for:
    - tc39/proposal-intl-duration-format#183
    - tc39/proposal-intl-duration-format#184
    anba authored and Ms2ger committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    f4bf02a View commit details
    Browse the repository at this point in the history
  2. Use formatDurationFormatPattern for "/numeric-hour-with-zero-minutes-…

    …and-non-zero-seconds"
    
    The changes from the first commit allow to use
    `formatDurationFormatPattern` for this test.
    anba authored and Ms2ger committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    4378edc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    23098e3 View commit details
    Browse the repository at this point in the history
  4. Update numeric-hour-with-zero-minutes-and-non-zero-seconds for new de…

    …fault display of sub-hours units
    
    Numeric "minute" and "seconds" units now default to "always" display, so we have
    to add an additional test to cover when "auto" display is used. Additionally add
    more inputs to cover all possible test combinations.
    anba authored and Ms2ger committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    dd3bc2a View commit details
    Browse the repository at this point in the history
  5. Add test for negative zero inputs

    anba authored and Ms2ger committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    e804c4e View commit details
    Browse the repository at this point in the history