Commit Graph

30 Commits

Author SHA1 Message Date
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
Andrew Hankinson
7a97d524f8 Improved testing data for IIIFv3
This commit adds a new set of tests for IIIFv3 Image API info
to the `formats` tests. These tests mirror the tests done for the v2
handler, but with updated 'info.json' files.

Image directories also needed to be changed to include the full width/height
parameters.

Also changed was moving the `iiif` test block up below formats, and adding a QUnit
module name. This allowed the tests to show up in the QUnit browser test.

All of the new tests were checked and pass.
2022-06-16 12:58:41 +02:00
Zsolt Ero
59f15508b9 removed old files from test 2018-02-16 21:17:52 +01:00
Zsolt Ero
d44e907910 added tests for scaleFactors [1] 2018-02-16 21:14:28 +01:00
Sean Nichols
ddab768696 Add options for loading tiles via AJAX and custom AJAX request headers. 2017-05-05 15:37:33 -04:00
Ralph Krimmel
44874b25b1 Using more interesting image for test 2016-05-13 09:10:49 +02:00
Ralph Krimmel
75e5365ecd Adding zoomify format example 2016-02-25 11:46:37 +01:00
Tom Crane
f7c9585003 Support tile-less IIIF as per LegacyTileSource: Fix #737 2016-01-09 14:04:21 +00:00
Rob Sanderson
38da88c794 Fixing 2.0 test info.json 2014-09-04 12:28:52 -07:00
Rob Sanderson
cbdb0d19be IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
Rob Sanderson
984fb8c531 Fixed drawer, renamed source, fixed tests 2014-07-28 11:53:06 -07:00
Antoine Vandecreme
ba10c392a1 Merge branch 'master' into layers
Conflicts:
	src/drawer.js
	src/viewer.js
	test/test.html
2014-03-19 16:24:48 -04:00
Antoine Vandecreme
b542b90590 Fix $.indexOf pollyfill
Add the original options in addLayer events
Add layers demo page
2014-01-05 19:20:45 -05:00
Jon Stroop
24298dcbba Only require IIIF level 1; Vary tile size based on src image when no tiles are reported. Toward openseadragon/openseadragon#313 2014-01-02 19:59:10 -05:00
Jon Stroop
6aaf44cebf test for IIIF images w/o tiles 2013-11-18 12:52:55 -05:00
Jon Stroop
32254f1418 removed duplicate iiif test tile files (w/ different names) and completed sets 2013-10-05 15:44:06 -04:00
Jon Stroop
935013c120 added missing 1.1 tiles 2013-10-05 15:38:00 -04:00
Jon Stroop
54ace13782 deleted duplicate iiif 1.1 test tiles 2013-10-05 15:15:47 -04:00
Jon Stroop
8f154e3173 removed old, unnecessary files from cache 2013-10-05 15:11:59 -04:00
Jon Stroop
964e73b9a5 iiiftilesource now uses pixel-based syntax 'w,'. level 1 compliance it still required, so backward compatability should not be an issue 2013-10-05 15:02:26 -04:00
Jon Stroop
c418725ade full tile sets 2013-10-03 19:23:52 -04:00
Jon Stroop
85c4f27dd8 resolves #236; iiif 1.0 and 1.1 tests now depend on local tiles 2013-10-02 15:53:10 -04:00
Jon Stroop
8750300612 applied iangilman\'s patch 2013-09-30 19:42:16 -04:00
Jon Stroop
00870530af Adding iiif 1.0 info samples 2013-09-28 06:46:41 -04:00
Jon Stroop
dcb2fc7136 added test for 1.1; renamed 11 to 1_1 2013-09-26 17:24:02 -04:00
Chris Adams
9f6f164d9f Remove all whitespace
The results of running this command::

    find . -name \*.js -print0 | xargs -0 perl -p -i -e "s|[ \t]+$||"

(Split from #136)
2013-06-19 13:33:27 -04:00
Ian Gilman
9001fe9a5e Generalized format test and added DZI XML 2013-05-13 10:50:43 -07:00
Ian Gilman
05c25fddcf Getting started on a DZI-JSONp test; currently disabled 2013-05-09 11:03:31 -07:00
Ian Gilman
65bb177fb8 Added tall and wide test DZIs 2013-03-21 10:25:03 -07:00
Ian Gilman
9401b5d393 First version of real tests 2013-03-07 10:44:08 -08:00