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