Closed Bug 1339817 Opened 7 years ago Closed 7 years ago

Enable Intl.PluralRules tests from test262

Categories

(Core :: JavaScript: Internationalization API, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(2 files, 1 obsolete file)

This feature requires some small changes to the test262 import script.
With this change it's possible to specify additional includes for specific test262 subdirectories. This will be used in part 2 to add the addIntlExtras() shell helper for tests in test262/intl402/PluralRules.

I've also removed the fallback code for "async" and "negative" attributes, because all test262 files now have the correct meta-data. And I've enabled the error output for monkey-yaml parse errors, so we don't silently skip files with bad meta-data. There are some files which currently can't be parsed by monkey-yaml, this will be fixed by https://github.com/tc39/test262/pull/862.
Attachment #8837641 - Flags: review?(shu)
Added preprocessing for test262/intl402/PluralRules to test262-update.py and regenerated the test262 checkout (with `python test262-update.py --revision 8a0563dd5eb9c6ee1df8a17cf8f626c35fa56a46` to avoid updating to latest master).
Attachment #8837646 - Flags: review?(shu)
Comment on attachment 8837641 [details] [diff] [review]
bug1339817-part1-local-includes-feature.patch

Review of attachment 8837641 [details] [diff] [review]:
-----------------------------------------------------------------

::: js/src/tests/test262-update.py
@@ +203,5 @@
> +    # when the error is issued (runtime error or early parse error). We're
> +    # currently ignoring this additional meta-data.
> +    # testRec["negative"] == {type=<error name>, phase=early|runtime}
> +    isNegative = "negative" in testRec
> +    assert "negative" not in testRec or type(testRec["negative"]) == dict

assert not isNegative
Attachment #8837641 - Flags: review?(shu) → review+
Comment on attachment 8837646 [details] [diff] [review]
bug1339817-part2-enable-pluralrules-tests.patch

Review of attachment 8837646 [details] [diff] [review]:
-----------------------------------------------------------------

\o/
Attachment #8837646 - Flags: review?(shu) → review+
+:gandalf
Update part 1 per review comments, carrying r+ from shu.
Attachment #8837641 - Attachment is obsolete: true
Attachment #8838724 - Flags: review+
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fa58978bd709
Part 1: Allow to specify additional includes for test262 tests. r=shu
https://hg.mozilla.org/integration/mozilla-inbound/rev/f6603d52cd90
Part 2: Enable Intl.PluralRules tests from test262. r=shu
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/fa58978bd709
https://hg.mozilla.org/mozilla-central/rev/f6603d52cd90
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: