VulpesOS/gaia/apps/emergency-call/test/unit/mock_keypad.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

33 lines
857 B
JavaScript
Executable file

'use strict';
/* exported MockKeypadManager */
var MockKeypadManager = {
init: function() {},
maxFontSize: 12,
minFontSize: 8,
formatPhoneNumber:
function khm_formatPhoneNumber(ellipsisSide) {
this.mFormatPhoneNumberCalled = true;
},
mFormatPhoneNumberCalled: false,
updateAdditionalContactInfo:
function khm_updateAdditionalContactInfo(ellipsisSide, maxFontSize) {
this.mUpdateAdditionalContactInfo = true;
},
mUpdateAdditionalContactInfo: false,
mTearDown: function khm_tearDown() {
this.mFormatPhoneNumberCalled = false;
this.mUpdateAdditionalContactInfo = false;
},
mOnMakeCall: null,
updatePhoneNumber: function khm_updatePhoneNumber(number) {
this._phoneNumber = number;
},
makeCall: function makeCall() {
if (this.mOnMakeCall) {
this.mOnMakeCall(this._phoneNumber);
}
}
};