[Sugar-devel] Blocked on testing icon.load

Daniel Narvaez dwnarvaez at gmail.com
Mon Jun 10 15:18:39 EDT 2013


You seem to be passing an url() string to load, which actually expects a
plain url?

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 <javascript:;>
> http://lists.sugarlabs.org/listinfo/sugar-devel
>


-- 
Daniel Narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130610/5248b28a/attachment.html>


More information about the Sugar-devel mailing list