[Sugar-devel] [web-activity] functional tests and env.isStandalone's current implementation

Rogelio Mita rogeliomita at activitycentral.com
Fri Dec 20 10:41:01 EST 2013


ok!, I understand you now, yes, can work using user agent


2013/12/20 Rogelio Mita <rogeliomita at activitycentral.com>

>
> 2013/12/20 Daniel Narvaez <dwnarvaez at gmail.com>
>
>> What about using the user agent in isStandalone instead of the protocol?
>> We can make the web activity and the sugar-web-test use two different,
>> recognizable user agents.
>
>
> sorry I don't understand how this will help us, the expected is that
> "sugar-web-test" and a "web activity running in sugar platform" should have
> same behavior, isStandalone? -> false, right? or I think don't follow your
> idea =)
>
> In unit test is not a problem at all, we just mock spyOn(env,
> "isStandalone").andReturn(false) then we are in sugar mode, but integration
> tests in some way, we should have a environment more close to actual,
> isStandalone should return false without necessity of mocking him, IMHO.
>
> --
> Roger
>
> Activity Central <http://activitycentral.com/>
>



-- 
Roger

Activity Central <http://activitycentral.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20131220/a5d8f560/attachment.html>


More information about the Sugar-devel mailing list