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:
bors-servo 2016-10-25 05:51:03 -05:00 committed by GitHub
commit c8321edc27
6 changed files with 21 additions and 4 deletions

View file

@ -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",

View file

@ -20,6 +20,7 @@ function test_interfaces(interfaceNamesInGlobalScope) {
"Int32Array",
"Int8Array",
"InternalError",
"Intl",
"Iterator",
"JSON",
"Map",

View 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>