Test for localeCompare.

This commit is contained in:
Emilio Cobos Álvarez 2016-10-25 12:28:36 +02:00
parent 30039f2cdc
commit 60e0ccf17d
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 16 additions and 0 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

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