Skip to content

Commit

Permalink
Test for localeCompare.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Oct 25, 2016
1 parent 30039f2 commit 60e0ccf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/wpt/mozilla/meta/MANIFEST.json
Expand Up @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions tests/wpt/mozilla/tests/mozilla/localeCompare.html
@@ -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>

0 comments on commit 60e0ccf

Please sign in to comment.