VulpesOS/gaia/apps/system/test/unit/mock_lock_screen.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

45 lines
796 B
JavaScript
Executable file

'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();
}
};