Skip to content
Snippets Groups Projects
Commit b535c93a authored by aeschylus's avatar aeschylus
Browse files

edit karma config to enable fixtures, fixed toc error, imported v1 test and Richardson 7

parent 50a51522
Branches
Tags
No related merge requests found
......@@ -25,7 +25,7 @@
init: function () {
var _this = this;
if (!_this.structures || _this.structures.length === 0) {
this.element = jQuery(this.emptyTemplate).appendTo(this.appendTo);
this.element = jQuery(this.emptyTemplate()).appendTo(this.appendTo);
} else {
this.ranges = this.setRanges();
this.element = jQuery(this.template({ ranges: this.getTplData() })).appendTo(this.appendTo);
......
......@@ -45,7 +45,7 @@ module.exports = function(config) {
// spec
'spec/**/*.js',
{pattern: 'spec/data/*', watched: true, served: true, included: false},
{pattern: 'spec/fixtures/v1StructuresManifest.json', watched: true, served: true, included: false},
{pattern: 'spec/fixtures/*json', watched: true, served: true, included: false},
],
......
{"structures": [
{
"@id": "http://www.example.org/iiif/book1/range/r1.json",
"@type": "sc:Range",
"label": "Introduction",
"canvases": [
"http://www.example.org/iiif/book1/canvas/p1.json"
]
},
{
"@id": "http://www.example.org/iiif/book1/range/r2.json",
"@type": "sc:Range",
"label": "Part 1",
"within": "http://www.example.org/iiif/book1/range/r1.json",
"canvases": [
"http://www.example.org/iiif/book1/canvas/p2.json",
"http://www.example.org/iiif/book1/canvas/p3.json#xywh=0,0,750,300"
]
}
]
}
......@@ -2,17 +2,17 @@ describe('Table of Contents', function() {
beforeEach(function(){
jasmine.getJSONFixtures().fixturesPath = 'spec/fixtures';
var v1SimpleStructures = getJSONFixture('simpleFixture'),
v2SimpleStructures = getJSONFixture('simpleFixture'),
v21SimpleStructures = getJSONFixture('simpleFixture'),
var v1SimpleStructures = getJSONFixture('simpleStructuresFixtureV1.json'),
// v2SimpleStructures = getJSONFixture('simpleStructuresFixtureV2.json'),
// v21SimpleStructures = getJSONFixture('simpleStructuresFixtureV21.json'),
realisticV2 = {},
realisticV21 = {},
realisticV1 = getJSONFixture('v1StructuresManifest.json');
realisticV1 = getJSONFixture('Richardson7manifest.json');
});
describe('Initialisation', function(){
xit('should render a table of contents element', function() {
it('should render a table of contents element', function() {
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment