1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/base/content/test/social/browser_defaults.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 + 1.5 +let SocialService = Cu.import("resource://gre/modules/SocialService.jsm", {}).SocialService; 1.6 + 1.7 +// this test ensures that any builtin providers have the builtin flag that we 1.8 +// need to help with "install" of a builtin. 1.9 +function test() { 1.10 + let manifestPrefs = Services.prefs.getDefaultBranch("social.manifest."); 1.11 + let prefs = manifestPrefs.getChildList("", []); 1.12 + ok(prefs.length > 0, "we have builtin providers"); 1.13 + for (let pref of prefs) { 1.14 + let manifest = JSON.parse(manifestPrefs.getComplexValue(pref, Ci.nsISupportsString).data); 1.15 + ok(manifest.builtin, "manifest is builtin " + manifest.origin); 1.16 + } 1.17 +}