VulpesOS/gaia/apps/communications/contacts/test/unit/mock_activities.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

23 lines
579 B
JavaScript
Executable file

/* exported MockActivityHandler */
'use strict';
var MockActivityHandler = {
currentlyHandling: false,
activityName: 'view',
currentActivityIs: function(list) {
return this.currentlyHandling && list.indexOf(this.activityName) !== -1;
},
currentActivityIsNot: function(list) {
return this.currentlyHandling && list.indexOf(this.activityName) === -1;
},
postPickSuccess: function(data) {},
postCancel: function() {},
dataPickHandler: function() {},
isCancelable: function() {
return {
then: function(cb) {
cb();
}
};
}
};