toolkit/mozapps/extensions/test/browser/browser_bug616841.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:fc91528feae4
1 /* Any copyright is dedicated to the Public Domain.
2 * http://creativecommons.org/publicdomain/zero/1.0/
3 */
4
5 function test_string_compare() {
6 ok("C".localeCompare("D") < 0, "C < D");
7 ok("D".localeCompare("C") > 0, "D > C");
8 ok("\u010C".localeCompare("D") < 0, "\u010C < D");
9 ok("D".localeCompare("\u010C") > 0, "D > \u010C");
10 }
11
12 function test() {
13 waitForExplicitFinish();
14
15 test_string_compare();
16
17 AddonManager.getAddonByID("foo", function(aAddon) {
18 test_string_compare();
19 finish();
20 });
21 }

mercurial