From 8750300612d414920db1cec33555ea0bc950f5f9 Mon Sep 17 00:00:00 2001 From: Jon Stroop Date: Mon, 30 Sep 2013 19:42:16 -0400 Subject: [PATCH] applied iangilman\'s patch --- test/data/iiif1_0.json | 6 +++--- test/data/iiif1_0.xml | 2 +- test/formats.js | 12 ++++++++++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/test/data/iiif1_0.json b/test/data/iiif1_0.json index 9cfe9e54..2c55544c 100644 --- a/test/data/iiif1_0.json +++ b/test/data/iiif1_0.json @@ -1,5 +1,5 @@ { - "identifier": "pudl0071/4055459/01/00000030", + "identifier": "pudl0001/4609321/s42/00000001", "width": 2584, "height": 3600, "scale_factors": [ @@ -22,5 +22,5 @@ "color" ], "profile": "http://library.stanford.edu/iiif/image-api/compliance.html#level1", - "image_host": "http://img.princeton.edu/loris -} \ No newline at end of file + "image_host": "http://lorisimg.princeton.edu/loris" +} diff --git a/test/data/iiif1_0.xml b/test/data/iiif1_0.xml index f6963492..3e7f931f 100644 --- a/test/data/iiif1_0.xml +++ b/test/data/iiif1_0.xml @@ -1 +1 @@ -pudl0071/4055459/01/000000302584360012345256256jpgpngnativebitonalgreycolorhttp://library.stanford.edu/iiif/image-api/compliance.html#level1http://img.princeton.edu/loris \ No newline at end of file +pudl0001/4609321/s42/000000012584360012345256256jpgpngnativebitonalgreycolorhttp://library.stanford.edu/iiif/image-api/compliance.html#level1http://lorisimg.princeton.edu/loris diff --git a/test/formats.js b/test/formats.js index 8258c386..7a81c4f7 100644 --- a/test/formats.js +++ b/test/formats.js @@ -65,11 +65,19 @@ testOpen('testpattern.xml'); }); + // ---------- + asyncTest('IIIF 1.0 JSON', function() { + testOpen('iiif1_0.json'); + }); + + // ---------- + asyncTest('IIIF 1.0 XML', function() { + testOpen('iiif1_0.xml'); + }); + // ---------- asyncTest('IIIF 1.1 JSON', function() { testOpen('iiif1_1.json'); }); - - })();