<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2013/12/20 Daniel Narvaez <span dir="ltr"><<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
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.</blockquote><div> </div></div><div class="gmail_extra">
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 =)</div>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">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.<br clear="all">
<div><br></div>-- <br>Roger<div><br><div><a href="http://activitycentral.com/" target="_blank">Activity Central</a></div></div>
</div></div>