Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
37 lines
587 B
JavaScript
Executable file
37 lines
587 B
JavaScript
Executable file
'use strict';
|
|
/* exported MockImageLoader */
|
|
/* exported MockURL */
|
|
/* exported MockUtils */
|
|
|
|
var MockURL = {
|
|
createObjectURL: function(url) {
|
|
return url;
|
|
},
|
|
|
|
revokeObjectURL: function(url) {
|
|
// do nothing
|
|
}
|
|
};
|
|
|
|
|
|
var MockImageLoader = function() {
|
|
this.init = function() {};
|
|
this.reload = function() {};
|
|
this.setResolver = function() {};
|
|
this.releaseImage = function() {};
|
|
this.unload = function() {};
|
|
};
|
|
|
|
var MockUtils = {
|
|
'misc' : {
|
|
'toMozContact': function(c) {
|
|
return c;
|
|
}
|
|
},
|
|
listeners: {
|
|
add: function() {}
|
|
},
|
|
cookie: {
|
|
|
|
}
|
|
};
|