equal
deleted
inserted
replaced
2 because the stub data is huge an we don't want to ship it with the rest |
2 because the stub data is huge an we don't want to ship it with the rest |
3 of the app */ |
3 of the app */ |
4 |
4 |
5 IriSP.MockSerializer = function(DataLoader, url) { |
5 IriSP.MockSerializer = function(DataLoader, url) { |
6 IriSP.Serializer.call(this, DataLoader, url); |
6 IriSP.Serializer.call(this, DataLoader, url); |
7 this._data = _data; |
|
8 }; |
7 }; |
9 |
8 |
10 IriSP.MockSerializer.prototype = new IriSP.Serializer(); |
9 IriSP.MockSerializer.prototype = new IriSP.Serializer(); |
11 |
10 |
12 IriSP.MockSerializer.prototype.currentMedia = function() { |
11 IriSP.MockSerializer.prototype.currentMedia = function() { |
17 // some tests. |
16 // some tests. |
18 |
17 |
19 IriSP.MockSerializer.prototype.searchAnnotations = IriSP.JSONSerializer.prototype.searchAnnotations; |
18 IriSP.MockSerializer.prototype.searchAnnotations = IriSP.JSONSerializer.prototype.searchAnnotations; |
20 IriSP.MockSerializer.prototype.searchOccurences = IriSP.JSONSerializer.prototype.searchOccurences; |
19 IriSP.MockSerializer.prototype.searchOccurences = IriSP.JSONSerializer.prototype.searchOccurences; |
21 |
20 |
22 var _data = { "tags": [ |
21 IriSP.MockSerializer.prototype._data = { "tags": [ |
23 { |
22 { |
24 "meta": { |
23 "meta": { |
25 "dc:contributor": "IRI ", |
24 "dc:contributor": "IRI ", |
26 "dc:created": "2010-09-06T15:53:44.618963", |
25 "dc:created": "2010-09-06T15:53:44.618963", |
27 "dc:title": "suffrage universel", |
26 "dc:title": "suffrage universel", |