mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Auto merge of #13836 - emilio:js-intl, r=Ms2ger
Update mozjs_sys to expose proper locale callbacks. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #13788 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Fixes #13788 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13836) <!-- Reviewable:end -->
This commit is contained in:
commit
c8321edc27
6 changed files with 21 additions and 4 deletions
|
@ -7094,6 +7094,12 @@
|
|||
"url": "/_mozilla/mozilla/load_event.html"
|
||||
}
|
||||
],
|
||||
"mozilla/localeCompare.html": [
|
||||
{
|
||||
"path": "mozilla/localeCompare.html",
|
||||
"url": "/_mozilla/mozilla/localeCompare.html"
|
||||
}
|
||||
],
|
||||
"mozilla/mime_sniffing_font_context.html": [
|
||||
{
|
||||
"path": "mozilla/mime_sniffing_font_context.html",
|
||||
|
|
|
@ -20,6 +20,7 @@ function test_interfaces(interfaceNamesInGlobalScope) {
|
|||
"Int32Array",
|
||||
"Int8Array",
|
||||
"InternalError",
|
||||
"Intl",
|
||||
"Iterator",
|
||||
"JSON",
|
||||
"Map",
|
||||
|
|
10
tests/wpt/mozilla/tests/mozilla/localeCompare.html
Normal file
10
tests/wpt/mozilla/tests/mozilla/localeCompare.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>localeCompare should return the same as other browsers, even though it's implementation-dependent</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(function() {
|
||||
assert_equals("ab".localeCompare("aZ"), -1);
|
||||
})
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue