diff --git a/test/modules/tilesource-dynamic-url.js b/test/modules/tilesource-dynamic-url.js index f07fedc0..d490ee6e 100644 --- a/test/modules/tilesource-dynamic-url.js +++ b/test/modules/tilesource-dynamic-url.js @@ -119,7 +119,8 @@ OpenSeadragon.extend( Tile.prototype, OpenSeadragon.Tile.prototype, { getUrl: function() { - ASSERT.ok(true, 'Tile.getUrl called'); + // TODO: it seems sometimes this can be called after ASSERT is destroyed; should this be fixed differently? + ASSERT && ASSERT.ok(true, 'Tile.getUrl called'); return OriginalTile.prototype.getUrl.apply(this); } });