On Fri, Sep 28, 2012 at 1:09 AM, David Clarke <dcla...@mozilla.com> wrote:
> Hey B2G Devs, > > I was putting together a how to document for testing permissions using > mochitests on the b2g emulator platform. > > https://etherpad.mozilla.org/b2g-mochitest-permissions > > Generally looking to solicit ideas and create a conversation before I put > it to the wiki. > > I would like to gather further information: > > #1) Permissions notifications > > Are there any thoughts on having a notification mechanism that allows for > permission changes to be handled more dynamically. > Without permissions notifications is there any real guarantee that an app > has been installed correctly ? > #2) Other Mechanisms for launching permissions tests. > Are there any other known working mechanisms for launching permissions > tests, or modififying app permissions. > > #3) Could there be a better mechanism for installing an app with the > correct permissions and then running tests within that context ? > > Would anyone want to see an example where we install an app with specific > permissions, and then run tests from within that context ? > > > Thanks for the feedback. > > Hi, I don't understand how something like this would work? https://github.com/geoelectric/webapi-smoke-sprint/blob/master/settings/test_launcher.html Are regular mochitests allowed to load a webapp in an iframe, just by adding the 'webapp' attribute? So normal websites can do the same too, then, right? And there is not a security problem with that? Anyway, it's cool that it works! About the Permissions notifications issue, that is https://bugzilla.mozilla.org/show_bug.cgi?id=685652 as David Chan mentioned. It needs a similar treatment as the PushPrefEnv patch. A workaround that probably can be used, is adding a lame setTimeout(nextTest, 0). That worked with the pref setting before the PushPrefEnv patch, iirc. Regards, Martijn > -David > _______________________________________________ > Qa-b2g mailing list > qa-...@mozilla.org > https://mail.mozilla.org/listinfo/qa-b2g > -- Martijn Wargers - Help Mozilla! http://quality.mozilla.org/ http://wiki.mozilla.org/Mozilla_QA_Community irc://irc.mozilla.org/qa - /nick mw22 _______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g