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
33
gaia/apps/emergency-call/test/unit/mock_keypad.js
Executable file
33
gaia/apps/emergency-call/test/unit/mock_keypad.js
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
'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);
|
||||
}
|
||||
}
|
||||
};
|
||||
Loading…
Reference in a new issue