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

41 lines
1 KiB
JavaScript
Executable file

'use strict';
(function(exports) {
var mHomescreenInstance;
var MockHomescreenLauncher = function() {
return this;
};
MockHomescreenLauncher.prototype = {
start: function mhl_start() {},
getHomescreen: function mhl_getHomescreen() {
return mHomescreenInstance;
},
mFeedFixtures: function mhl_feedFixtures(options) {
mHomescreenInstance = options.mHomescreenWindow;
this.origin = options.origin || 'home';
this.ready = options.ready;
this.manifestURL = options.manifestURL ||
'app://fakehome.gaiamobile.org/manifest.webapp';
},
mHomescreenWindow: null,
origin: 'home',
manifestURL: 'app://fakehome.gaiamobile.org/manifest.webapp',
ready: true,
mTeardown: function mhl_mTeardown() {
this.mHomescreenWindow = null;
this.origin = 'home';
this.manifestURL = 'app://fakehome.gaiamobile.org/manifest.webapp';
this.ready = true;
}
};
exports.MockHomescreenLauncher = MockHomescreenLauncher;
}(window));