On Wed Feb 26 09:24 AM, Gert-Jan Braas wrote:
> >> expect(s).toHaveBeenCalledWith(temp,
> >> path.join('src', 'plugins', 'dummyplugin', 'DummyPlugin.js'));
> >> done();
> >> });
> >> });
> >> });
> >>
> >
> > Jasmine runs synchronously, so you need to 'waitsFor' promise:
> >
>
> Ok thanks.
> Will look that up. First I will try to look what's going on thoug. The
> 'waitFor' is not
> needed in the tests for the other platforms, so I don't expect it to be for
> Firefoxos also. Correct me if I'm wrong.
>
So I take that back,
Looks like jasmine supports calling done() to wait for an async test
(documented in 2.0).
Seems like the better way to go.