openseadragon/test/data
Craig A. Berry bff93af17e Handle XML embedded in tilesource JSON
The existing check for whether the tilesource data is XML or JSON
looks for a tag anywhere in the response content, which incorrectly
flags the content as XML in the case where it is really JSON with
XML embedded in it.

This commit corrects that problem by requiring the tag to occur as
the first non-whitespace part of the content. This is basically a
poor person's well-formedness check since well-formed XML cannot
have non-whitespace content outside of the root node.

N.B. While malformed XML content with non-whitespace characters
before the first element has been getting identified as XML, it
has not been getting parsed correctly.  With current parsing
infrastructure, the content has been getting replaced by a parsing
error message.  With more up-to-date parsing infrastructure, it
will throw an error.  Either way we're not losing anything by failing
to identify malformed XML as XML.

Addresses issue #2325.
2023-03-30 16:38:35 -05:00
..
iiif_1_0_files Fixed drawer, renamed source, fixed tests 2014-07-28 11:53:06 -07:00
iiif_1_1_no_tiles_255 Fixed drawer, renamed source, fixed tests 2014-07-28 11:53:06 -07:00
iiif_1_1_no_tiles_384 Fixed drawer, renamed source, fixed tests 2014-07-28 11:53:06 -07:00
iiif_1_1_no_tiles_768 Fixed drawer, renamed source, fixed tests 2014-07-28 11:53:06 -07:00
iiif_1_1_no_tiles_1048 Fixed drawer, renamed source, fixed tests 2014-07-28 11:53:06 -07:00
iiif_1_1_tiled Fixed drawer, renamed source, fixed tests 2014-07-28 11:53:06 -07:00
iiif_2_0_sizes Support tile-less IIIF as per LegacyTileSource: Fix #737 2016-01-09 14:04:21 +00:00
iiif_2_0_tiled Handle XML embedded in tilesource JSON 2023-03-30 16:38:35 -05:00
iiif_2_0_tiled_sf1 removed old files from test 2018-02-16 21:17:52 +01:00
iiif_3_0_sizes Improved testing data for IIIFv3 2022-06-16 12:58:41 +02:00
iiif_3_0_tiled Improved testing data for IIIFv3 2022-06-16 12:58:41 +02:00
iiif_3_0_tiled_sf1 Improved testing data for IIIFv3 2022-06-16 12:58:41 +02:00
tall_files Added tall and wide test DZIs 2013-03-21 10:25:03 -07:00
testpattern_files First version of real tests 2013-03-07 10:44:08 -08:00
wide_files Added tall and wide test DZIs 2013-03-21 10:25:03 -07:00
zoomify Using more interesting image for test 2016-05-13 09:10:49 +02:00
A.png Fix $.indexOf pollyfill 2014-01-05 19:20:45 -05:00
BBlue.png Fix $.indexOf pollyfill 2014-01-05 19:20:45 -05:00
CCyan.png Fix $.indexOf pollyfill 2014-01-05 19:20:45 -05:00
DDandelion.png Fix $.indexOf pollyfill 2014-01-05 19:20:45 -05:00
tall.dzi Added tall and wide test DZIs 2013-03-21 10:25:03 -07:00
testpattern.blob Add options for loading tiles via AJAX and custom AJAX request headers. 2017-05-05 15:37:33 -04:00
testpattern.dzi First version of real tests 2013-03-07 10:44:08 -08:00
testpattern.js Remove all whitespace 2013-06-19 13:33:27 -04:00
testpattern.xml Generalized format test and added DZI XML 2013-05-13 10:50:43 -07:00
wide.dzi Added tall and wide test DZIs 2013-03-21 10:25:03 -07:00