Skip to content

Commit

Permalink
fixed test file to reflect that we need to grab the windowSettings fr…
Browse files Browse the repository at this point in the history
…om the default settings
  • Loading branch information
rsinghal committed May 11, 2016
1 parent 15a5af1 commit b4f0103
Showing 1 changed file with 32 additions and 28 deletions.
60 changes: 32 additions & 28 deletions spec/workspaces/window.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,39 @@ describe('Window', function() {
this.toggle = jasmine.createSpy();
this.adjustHeight = jasmine.createSpy();
});
this.window = new Mirador.Window({
state: new Mirador.SaveController(Mirador.DEFAULT_SETTINGS),
manifest: {
jsonLd: {
sequences: [
{ viewingHint: 'paged',
canvases: [{
'@id': ''
}]
}]
var state = new Mirador.SaveController(Mirador.DEFAULT_SETTINGS);
this.window = new Mirador.Window(jQuery.extend(true,
{},
state.getStateProperty('windowSettings'),
{
state: state,
manifest: {
jsonLd: {
sequences: [
{ viewingHint: 'paged',
canvases: [{
'@id': ''
}]
}]
},
getCanvases: function() { return [{
'@id': '',
'images':[{
}]
}];
},
getAnnotationsListUrl: function() {
return false; // returning false for non-existent value is probably not a good practice?
},
getStructures: function() {
return [];
},
getVersion: function() {
return '1';
}
},
getCanvases: function() { return [{
'@id': '',
'images':[{
}]
}];
},
getAnnotationsListUrl: function() {
return false; // returning false for non-existent value is probably not a good practice?
},
getStructures: function() {
return [];
},
getVersion: function() {
return '1';
}
},
appendTo: this.appendTo
});
appendTo: this.appendTo
}));
});

afterEach(function() {
Expand Down

0 comments on commit b4f0103

Please sign in to comment.