From 58f918aaa1019c2d28e14953cc7388794fbad4b8 Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 10 Jan 2024 12:13:00 -0500 Subject: [PATCH] clean up tests --- src/canvasdrawer.js | 18 ++++++++++++++++++ src/webgldrawer.js | 18 ++++++++++++++++++ test/demo/basic.html | 10 ---------- test/demo/collections/main.js | 3 ++- test/demo/tilesource-swap.html | 4 ++-- test/modules/ajax-tiles.js | 5 +---- test/modules/basic.js | 5 +---- test/modules/controls.js | 3 --- test/modules/drawer.js | 5 +---- test/modules/events.js | 5 +---- test/modules/formats.js | 5 +---- test/modules/imageloader.js | 5 +---- test/modules/multi-image.js | 5 +---- test/modules/navigator.js | 5 +---- test/modules/overlays.js | 6 ++---- test/modules/referencestrip.js | 5 +---- test/modules/tiledimage.js | 5 +---- test/modules/tilesource-dynamic-url.js | 5 +---- test/modules/units.js | 5 +---- test/modules/viewport.js | 5 +---- test/modules/world.js | 5 +---- 21 files changed, 56 insertions(+), 76 deletions(-) diff --git a/src/canvasdrawer.js b/src/canvasdrawer.js index e91a0459..b63c2ed0 100644 --- a/src/canvasdrawer.js +++ b/src/canvasdrawer.js @@ -101,6 +101,24 @@ class CanvasDrawer extends $.DrawerBase{ this._drawTiles(tiledImage); } } + + // // Fire the frame-drawn event. + // if( this.viewer ){ + // /** + // * Raised when a tiled image is drawn to the canvas. Only valid + // * for webgl and canvas drawers. + // * + // * @event tiled-image-drawn + // * @memberof OpenSeadragon.Viewer + // * @type {object} + // * @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event. + // * @property {HTMLElement} canvas - The canvas which has been drawn onto + // * @property {?Object} userData - Arbitrary subscriber-defined object. + // */ + // this.viewer.raiseEvent( 'frame-drawn', { + // canvas: this.canvas + // }); + // } } /** diff --git a/src/webgldrawer.js b/src/webgldrawer.js index c0bff511..90e802d4 100644 --- a/src/webgldrawer.js +++ b/src/webgldrawer.js @@ -380,6 +380,24 @@ this._outputContext.drawImage(this._renderingCanvas, 0, 0); } + // // Fire the frame-drawn event. + // if( this.viewer ){ + // /** + // * Raised when a tiled image is drawn to the canvas. Only valid + // * for webgl and canvas drawers. + // * + // * @event tiled-image-drawn + // * @memberof OpenSeadragon.Viewer + // * @type {object} + // * @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event. + // * @property {HTMLElement} canvas - The canvas which has been drawn onto + // * @property {?Object} userData - Arbitrary subscriber-defined object. + // */ + // this.viewer.raiseEvent( 'frame-drawn', { + // canvas: this.canvas + // }); + // } + } // Public API required by all Drawer implementations diff --git a/test/demo/basic.html b/test/demo/basic.html index 5f4262ab..5f956673 100644 --- a/test/demo/basic.html +++ b/test/demo/basic.html @@ -20,16 +20,6 @@