[Sugar-devel] [web-activity] functional tests and env.isStandalone's current implementation
Rogelio Mita
rogeliomita at activitycentral.com
Fri Dec 20 09:32:58 EST 2013
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/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20131220/8a87b688/attachment.html>
More information about the Sugar-devel
mailing list