diff -r 3ce493c93d6c -r f3fec80dd31c unittests/mockSerializer.js --- a/unittests/mockSerializer.js Mon Oct 24 16:51:22 2011 +0200 +++ b/unittests/mockSerializer.js Mon Oct 24 17:25:54 2011 +0200 @@ -1,7 +1,7 @@ /* mock serializer, for unit testing. This file is separated from data.js because the stub data is huge an we don't want to ship it with the rest of the app */ - + IriSP.MockSerializer = function(DataLoader, url) { IriSP.Serializer.call(this, DataLoader, url); @@ -1462,6 +1462,8 @@ }; }; +IriSP.MockSerializer.prototype = new IriSP.Serializer(); + IriSP.MockSerializer.prototype.currentMedia = function() { return this._data.medias[0]; };