diff options
Diffstat (limited to 'js/xpconnect/tests/unit/test_localeCompare.js')
-rw-r--r-- | js/xpconnect/tests/unit/test_localeCompare.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/xpconnect/tests/unit/test_localeCompare.js b/js/xpconnect/tests/unit/test_localeCompare.js new file mode 100644 index 000000000..08560d1ae --- /dev/null +++ b/js/xpconnect/tests/unit/test_localeCompare.js @@ -0,0 +1,6 @@ +function run_test() { + do_check_true("C".localeCompare("D") < 0); + do_check_true("D".localeCompare("C") > 0); + do_check_true("\u010C".localeCompare("D") < 0); + do_check_true("D".localeCompare("\u010C") > 0); +} |