[Sugar-devel] web-activity: env.getEnvironment dependency with Python code

Rogelio Mita rogeliomita at activitycentral.com
Wed Dec 11 16:12:48 EST 2013


And this pull request: https://github.com/sugarlabs/sugar-web/pull/97

change some semantics on
https://github.com/sugarlabs/sugar-web/blob/master/test/envSpec.js#L129test
and till now we have only this particular case behavior in our API


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

> Hi Daniel, when you have a moment can you check this pull request that
> repairs this functional test<https://github.com/sugarlabs/sugar-web/blob/master/test/envSpec.js#L7>which no was running
> https://github.com/sugarlabs/sugar-web/pull/96
>
> Thanks!
>
>
> 2013/12/2 Rogelio Mita <rogeliomita at activitycentral.com>
>
>> ok, thanks!
>>
>>
>> 2013/12/2 Daniel Narvaez <dwnarvaez at gmail.com>
>>
>>> Github is a bit broken at the moment, but I'll try to finish up
>>> reviewing later tonight. Thanks.
>>>
>>>
>>> On Monday, 2 December 2013, Code Raguet wrote:
>>>
>>>>
>>>> On Thu, Nov 28, 2013 at 3:26 PM, Daniel Narvaez <dwnarvaez at gmail.com>wrote:
>>>>
>>>>> Those are hard questions :) I was also thinking about compatibility
>>>>> with old sugar-toolkit-gtk3 versions when we change stuff like
>>>>> getEnvironment.
>>>>>
>>>> For future changes on this, we add some unitttest, so refactoring
>>>> should be safer
>>>> https://github.com/sugarlabs/sugar-web/pull/94
>>>>
>>>> Please, can anyone review this pull-request??
>>>>
>>>>
>>>>> What about having two configurations, one for Sugar running only
>>>>> inside sugar-build (what we have now), the other running into a normal web
>>>>> browser running outside sugar-build. Seems like this would ensure
>>>>> functionality of the contracts we currently care about? The sugar-web
>>>>> inside sugar-build would break if sugar-toolkit-gtk3 doesn't fulfil the the
>>>>> contract.
>>>>>
>>>> This is a good idea, but I'm not sure if it's priority right now...
>>>> perhaps in the short term this would bring-up again and we may revisit this
>>>> issue.
>>>>
>>>>
>>>>> There is a difference between testing that getEnvironment works or
>>>>> that the bits getEnvironment depend on (window.sugar) works as expected.
>>>>> Perhaps where we think that difference might matter we could also have
>>>>> tests which tests only the contract with toolkit, without other code layers
>>>>> in the middle. But getEnvironment is so thin that it probably doesn't
>>>>> matter at the moment..
>>>>>
>>>>
>>>> +1
>>>>
>>>>>
>>>>> We would need to figure out how to automate tests in a normal web
>>>>> browser, but shouldn't be much of a problem.
>>>>>
>>>> Roger, pointed me out that datastoreSpec mainly fails on standalone
>>>> mode... perhaps we should review those tests to find out if they can be
>>>> fixed. But it's not enough for having two configs, yet, IMHO.
>>>>
>>>> PS: we would like to rework a bit env.js, but we need the new unit
>>>> tests merged in order to continue. If someone can review them soon will be
>>>> appreciated.
>>>>
>>>
>>>
>>> --
>>> Daniel Narvaez
>>>
>>>
>>
>>
>> --
>> Roger
>>
>> Activity Central <http://activitycentral.com/>
>>
>
>
>
> --
> 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/20131211/bf0a927f/attachment-0001.html>


More information about the Sugar-devel mailing list