diff options
Diffstat (limited to 'services/cloudsync/tests/xpcshell/test_lazyload.js')
-rw-r--r-- | services/cloudsync/tests/xpcshell/test_lazyload.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/services/cloudsync/tests/xpcshell/test_lazyload.js b/services/cloudsync/tests/xpcshell/test_lazyload.js new file mode 100644 index 000000000..5928875d5 --- /dev/null +++ b/services/cloudsync/tests/xpcshell/test_lazyload.js @@ -0,0 +1,18 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ */ + +"use strict"; + +Cu.import("resource://gre/modules/CloudSync.jsm"); + +function run_test() { + run_next_test(); +} + +add_task(function test_lazyload() { + ok(!CloudSync.ready, "CloudSync.ready is false before CloudSync() invoked"); + let cs1 = CloudSync(); + ok(CloudSync.ready, "CloudSync.ready is true after CloudSync() invoked"); + let cs2 = CloudSync(); + ok(cs1 === cs2, "CloudSync() returns the same instance on multiple invocations"); +}); |