Hi,

To get the gadgets.Prefs.* functionality working I had to add this
line to my opensocial-0.7/feature.xml

      gadgets.Prefs.parseUrl();

After this is executed then the following test cases succeed:

        testPrefs: function () { with(this) {
           testhead("testPrefs");
           var p = new gadgets.Prefs()
           assertNotNull(p, "cannot get gadgets.Prefs()");

           assertNotNull(p.getCountry());
           assertNotEqual(p.getCountry(), 'all', 'country cannot be "all"');
           testoutput("Found country: '" + p.getCountry() + "'");
           assertEqual(p.getCountry().length, 2);

           assertNotNull(p.getLang());
           assertNotEqual(p.getLang(), 'all', 'lang cannot be "all"');
           testoutput("Found language: '" + p.getLang() + "'");
           assertEqual(p.getLang().length, 2);
        }},

(note this is when calling gadgets/ifr with country/lang parameters
set.)

Should we add this call to the samplecontainer too?

I'm also a little confused about what how one is supposed to use
moduelid in prefs.js...

-- 
Paul Lindner
hi5 Architect
[EMAIL PROTECTED]

Attachment: pgpnbfKpa6AlM.pgp
Description: PGP signature

Reply via email to