diff --git a/src/imageloader.js b/src/imageloader.js index 14eb576b..faa1fac8 100644 --- a/src/imageloader.js +++ b/src/imageloader.js @@ -84,7 +84,7 @@ ImageJob.prototype = { }; this.jobId = window.setTimeout(function(){ - self.errorMsg = "Image load exceeded timeout"; + self.errorMsg = "Image load exceeded timeout (" + self.timeout + " ms)"; self.finish(false); }, this.timeout); diff --git a/test/demo/timeout-certain.html b/test/demo/timeout-certain.html new file mode 100644 index 00000000..9e177500 --- /dev/null +++ b/test/demo/timeout-certain.html @@ -0,0 +1,35 @@ + + +
+The ImageLoader timeout is set to 0 ms, and the tile source is remote.
+In any web browser on any network connection, OpenSeadragon should not load properly, and the browser console log should show tile loading errors.
+The ImageLoader timeout is set to 24 hours, and the tile source is remote.
+In any web browser on nearly any network connection, OpenSeadragon should load properly, and the browser console log should not show any tile loading errors.
+