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.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
51
gaia/apps/communications/contacts/test/unit/mock_contacts.js
Executable file
51
gaia/apps/communications/contacts/test/unit/mock_contacts.js
Executable file
|
|
@ -0,0 +1,51 @@
|
|||
'use strict';
|
||||
/* exported MockContacts */
|
||||
/* exported COMMS_APP_ORIGIN */
|
||||
|
||||
var COMMS_APP_ORIGIN = location.origin;
|
||||
|
||||
var loadAsyncScriptsDeferred = {};
|
||||
loadAsyncScriptsDeferred.promise = new Promise((resolve) => {
|
||||
loadAsyncScriptsDeferred.resolve = resolve;
|
||||
});
|
||||
|
||||
var MockContacts = {
|
||||
isEmpty: function(prop) {
|
||||
return false;
|
||||
},
|
||||
hideOverlay: function() {
|
||||
},
|
||||
loadFacebook: function(cb) {
|
||||
cb();
|
||||
},
|
||||
cardStateChanged: function() {
|
||||
},
|
||||
cancel: function() {},
|
||||
utility: function(view, callback, type) {
|
||||
callback();
|
||||
},
|
||||
view: function(view, callback) {
|
||||
callback();
|
||||
},
|
||||
showOverlay: function(title, id) {
|
||||
return {
|
||||
'setClass': function(clazz) {},
|
||||
'setHeaderMsg': function(msg) {},
|
||||
'setTotal': function(total) {},
|
||||
'update': function() {}
|
||||
};
|
||||
},
|
||||
goBack: function(cb) {
|
||||
if (typeof cb === 'function') {
|
||||
cb();
|
||||
}
|
||||
},
|
||||
setCurrent: function(ct) {
|
||||
|
||||
},
|
||||
get asyncScriptsLoaded() {
|
||||
loadAsyncScriptsDeferred.resolve();
|
||||
return loadAsyncScriptsDeferred.promise;
|
||||
},
|
||||
showForm: function() {}
|
||||
};
|
||||
Loading…
Reference in a new issue