From 32f12b3ba53a8e58506f8c7f739569c32c214c65 Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 29 Nov 2023 19:34:41 -0500 Subject: [PATCH] check for valid ASSERT in tilesource-dynamic-url test --- test/modules/tilesource-dynamic-url.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } });