1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/services/sync/tests/unit/test_utils_lazyStrings.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 +/* Any copyright is dedicated to the Public Domain. 1.5 + * http://creativecommons.org/publicdomain/zero/1.0/ */ 1.6 + 1.7 +Cu.import("resource://services-common/stringbundle.js"); 1.8 +Cu.import("resource://services-sync/util.js"); 1.9 + 1.10 +function run_test() { 1.11 + let fn = Utils.lazyStrings("sync"); 1.12 + do_check_eq(typeof fn, "function"); 1.13 + let bundle = fn(); 1.14 + do_check_true(bundle instanceof StringBundle); 1.15 + let url = bundle.url; 1.16 + do_check_eq(url, "chrome://weave/locale/services/sync.properties"); 1.17 +}