mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Test for localeCompare.
This commit is contained in:
parent
30039f2cdc
commit
60e0ccf17d
2 changed files with 16 additions and 0 deletions
|
@ -7094,6 +7094,12 @@
|
||||||
"url": "/_mozilla/mozilla/load_event.html"
|
"url": "/_mozilla/mozilla/load_event.html"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"mozilla/localeCompare.html": [
|
||||||
|
{
|
||||||
|
"path": "mozilla/localeCompare.html",
|
||||||
|
"url": "/_mozilla/mozilla/localeCompare.html"
|
||||||
|
}
|
||||||
|
],
|
||||||
"mozilla/mime_sniffing_font_context.html": [
|
"mozilla/mime_sniffing_font_context.html": [
|
||||||
{
|
{
|
||||||
"path": "mozilla/mime_sniffing_font_context.html",
|
"path": "mozilla/mime_sniffing_font_context.html",
|
||||||
|
|
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