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
45
gaia/apps/system/test/unit/mock_lock_screen.js
Executable file
45
gaia/apps/system/test/unit/mock_lock_screen.js
Executable file
|
|
@ -0,0 +1,45 @@
|
|||
'use strict';
|
||||
/* exported MockLockScreen */
|
||||
|
||||
var MockLockScreen = {
|
||||
locked: false,
|
||||
|
||||
enabled: true,
|
||||
|
||||
passCodeEnabled: false,
|
||||
|
||||
passcode: '0000',
|
||||
|
||||
maskedBackground: undefined,
|
||||
|
||||
notificationsContainer: undefined,
|
||||
notificationArrow: undefined,
|
||||
|
||||
init: function mls_init() {
|
||||
this.locked = false;
|
||||
this.maskedBackground = undefined;
|
||||
this.notificationsContainer = undefined;
|
||||
this.notificationArrow = undefined;
|
||||
},
|
||||
|
||||
lock: function mls_lock() {
|
||||
this.locked = true;
|
||||
},
|
||||
|
||||
lockIfEnabled: function mls_lockIfEnabled() {
|
||||
if (this.enabled) {
|
||||
this.lock();
|
||||
}
|
||||
},
|
||||
|
||||
unlock: function mls_unclock() {
|
||||
this.locked = false;
|
||||
},
|
||||
|
||||
mozLockOrientation: function mls_mozLockOrientation() {
|
||||
},
|
||||
|
||||
mTeardown: function mls_mTeardown() {
|
||||
this.init();
|
||||
}
|
||||
};
|
||||
Loading…
Reference in a new issue