Absolutely. This tests are not too deep. Please put edge cases (which need tests) into our issues tracker.   

--  
Nikita


On Friday, March 1, 2013 at 3:35 AM, Ulric Wilfred wrote:

> In tests/spec/04.builder/20.image.spec.js:
> > + }); > + }); > + }); > + describe("caching", function() { > + it("second call callbacks without creating new Image", function() { > + var done = false; > + var oldImage = window.Image; > + var called = false; > + window.Image = function(s) { > + var self = this; > + setTimeout(function() {self.onload();}, 500); > + }; > + runs(function() { > + b().image([0,0], "test.png", function() {done = true;}); > + }); > + waitsFor(function() {return done;}, "The callback should fire", 800);  
> Also, may be it is right to test this technique with several files, to ensure that function calls different callbacks for different files. But it depends on hard-level we want tests to be (if it's API, probably it is required to be hard).
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/Animatron/player/pull/69/files#r3195605).
>  
>  
>