mozilla-b2g/gaia — pull request #4468 by davidflanagan (2012-09-07 22:38:55+00:00)
Title: asyncStorage utility

This pull request is a continuation of #4113. My commits got messed up there, so I've started over here.

This is the version of the code from over there with @vingtetun's nits addressed.

I've also updated the documentation to talk about storing values that are objects instead of strings.

And I've updated the tests to test storing and retrieving objects.

I've also tried to address @lightsofapollo concern about too many levels of nesting, so this new test attempts to use generators.

But I can't get make test-agent-test to work, and the gaia homescreen is broken today, so I can't run the tests locally on the phone either. So I'm going to have to rely on

/botio test

even though I know that the chance of my generator-based tests working on the first try are slim.