VulpesOS/gaia/apps/communications/contacts/test/unit/mock_utils.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

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: {
}
};