diff options
Diffstat (limited to 'browser/base/content/test/social/browser_defaults.js')
-rw-r--r-- | browser/base/content/test/social/browser_defaults.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/browser/base/content/test/social/browser_defaults.js b/browser/base/content/test/social/browser_defaults.js new file mode 100644 index 000000000..653509a98 --- /dev/null +++ b/browser/base/content/test/social/browser_defaults.js @@ -0,0 +1,14 @@ + +let SocialService = Cu.import("resource://gre/modules/SocialService.jsm", {}).SocialService; + +// this test ensures that any builtin providers have the builtin flag that we +// need to help with "install" of a builtin. +function test() { + let manifestPrefs = Services.prefs.getDefaultBranch("social.manifest."); + let prefs = manifestPrefs.getChildList("", []); + ok(prefs.length > 0, "we have builtin providers"); + for (let pref of prefs) { + let manifest = JSON.parse(manifestPrefs.getComplexValue(pref, Ci.nsISupportsString).data); + ok(manifest.builtin, "manifest is builtin " + manifest.origin); + } +} |