Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
33 lines
857 B
JavaScript
Executable file
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);
|
|
}
|
|
}
|
|
};
|