[Sugar-devel] sugar-web: env.js questions

Daniel Narvaez dwnarvaez at gmail.com
Fri Nov 22 14:23:21 EST 2013


On 22 November 2013 20:19, Rogelio Mita <rogeliomita at activitycentral.com>wrote:

>
>
> 2013/11/22 Daniel Narvaez <dwnarvaez at gmail.com>
>
>> Oh actually I see why it succeeds... The test doesn't verify that it
>> receives a response. It will only fail if it gets the wrong answer (and it
>> probably it's not always to fail in that case either). We need to follow
>> the async pattern we have in the datastore test. Though first maybe best to
>> decide what we want to do with getEnvironment exactly...
>
>
> You mean that never is executed the callback passed into getEnvironmnet,
> because never occur python notification which should be responsible for
> executing this callback?
>

Yes the callback is never executed because there is no python notification.
And our test succeeds because it doesn't make sure that the callback is
called.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20131122/73db39d7/attachment.html>


More information about the Sugar-devel mailing list