PageRenderTime 13ms CodeModel.GetById 11ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 1ms

/services/sync/tests/unit/test_utils_lazyStrings.js

http://github.com/zpao/v8monkey
JavaScript | 11 lines | 10 code | 1 blank | 0 comment | 0 complexity | f3aa6114b40c06be04d31db173ffec11 MD5 | raw file
 1Cu.import("resource://services-sync/util.js");
 2Cu.import("resource://services-sync/ext/StringBundle.js");
 3
 4function run_test() {
 5    let fn = Utils.lazyStrings("sync");
 6    do_check_eq(typeof fn, "function");
 7    let bundle = fn();
 8    do_check_true(bundle instanceof StringBundle);
 9    let url = bundle.url;
10    do_check_eq(url, "chrome://weave/locale/services/sync.properties");
11}