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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/mozapps/extensions/test/browser/browser_bug616841.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +/* Any copyright is dedicated to the Public Domain.
     1.5 + * http://creativecommons.org/publicdomain/zero/1.0/
     1.6 + */
     1.7 +
     1.8 +function test_string_compare() {
     1.9 +  ok("C".localeCompare("D") < 0, "C < D");
    1.10 +  ok("D".localeCompare("C") > 0, "D > C");
    1.11 +  ok("\u010C".localeCompare("D") < 0, "\u010C < D");
    1.12 +  ok("D".localeCompare("\u010C") > 0, "D > \u010C");
    1.13 +}
    1.14 +
    1.15 +function test() {
    1.16 +  waitForExplicitFinish();
    1.17 +
    1.18 +  test_string_compare();
    1.19 +
    1.20 +  AddonManager.getAddonByID("foo", function(aAddon) {
    1.21 +    test_string_compare();
    1.22 +    finish();
    1.23 +  });
    1.24 +}

mercurial