[Sugar-devel] Blocked on testing icon.load

Manuel Quiñones manuq at laptop.org
Mon Jun 10 16:07:38 EDT 2013


2013/6/10 Daniel Narvaez <dwnarvaez at gmail.com>:
> You seem to be passing an url() string to load, which actually expects a
> plain url?

That's it, thanks!  My error was because I was first trying to test
colorize() function, but then I moved to load(), which is the one to
be fixed.

> I'd also expect graphics/... to work instead of the absolute /base
>
>
> On Monday, 10 June 2013, Manuel Quiñones wrote:
>>
>> Hello, I want to fix icon.load so it is possible to load more than once.
>>
>> I have the solution already but I'm blocked with the tests.  The
>> problem is that my unit test doesn't see the icon URL, it gives 404
>> "not found".  Here is a branch with the changes I did:
>>
>>
>> https://github.com/manuq/sugar-web/commit/5e0f86b75929921baf781ae6eab6e3b2c1c98680
>>
>> After the karma.conf.js change, I can see the icon if I point a
>> browser to this URL with karma running:
>>
>> http://localhost:9876/base/graphics/icons/actions/dialog-ok-active.svg
>>
>> But in the karma output I see:
>>
>> Chrome 25.0 (Linux) LOG: 'data:image/svg+xml,NOT%20FOUND'
>> Chrome 25.0 (Linux): Executed 20 of 20 SUCCESS (9.27 secs / 8.504 secs)
>>
>> The test succeeds but is not what I want.
>>
>> Suggestions?
>>
>> --
>> .. manuq ..
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
>
> --
> Daniel Narvaez
>



--
.. manuq ..


More information about the Sugar-devel mailing list