[ol.Tile] add a isLoaded function

This commit is contained in:
Éric Lemoine
2012-06-21 19:10:09 +02:00
parent 79f5339573
commit 6c76f4621e
2 changed files with 19 additions and 0 deletions
+4
View File
@@ -24,6 +24,10 @@ describe("ol.Tile", function() {
tile.handleImageLoad();
expect(spy).toHaveBeenCalled();
});
it("sets the loaded flag", function() {
tile.handleImageLoad();
expect(tile.isLoaded()).toBeTruthy();
});
});
describe("handle image error", function() {