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
56
gaia/apps/system/test/unit/mock_homescreen_window.js
Executable file
56
gaia/apps/system/test/unit/mock_homescreen_window.js
Executable file
|
|
@ -0,0 +1,56 @@
|
|||
'use strict';
|
||||
/* exported MockHomescreenWindow */
|
||||
|
||||
var MockHomescreenWindow = function(value) {
|
||||
this.isHomescreen = true;
|
||||
this.manifestURL = value;
|
||||
this.origin = 'home';
|
||||
this.CLASS_NAME = 'HomescreenWindow';
|
||||
this.HIERARCHY_MANAGER = 'AppWindowManager';
|
||||
|
||||
this.open = function() {};
|
||||
this.close = function() {};
|
||||
this.kill = function() {};
|
||||
this.toggle = function() {};
|
||||
this.ready = function(cb) { cb && cb(); };
|
||||
this.isActive = function() {};
|
||||
this.changeURL = function() {};
|
||||
this.resize = function() {};
|
||||
this.setVisible = function() {};
|
||||
this.blur = function() {};
|
||||
this.publish = function() {};
|
||||
this.broadcast = function() {};
|
||||
this.fadeIn = function() {};
|
||||
this.fadeOut = function() {};
|
||||
this.setOrientation = function() {};
|
||||
this.focus = function() {};
|
||||
this.blur = function() {};
|
||||
this.debug = function() {};
|
||||
this.tryWaitForFullRepaint = function() {};
|
||||
this.waitForNextPaint = function() {};
|
||||
this.forward = function() {};
|
||||
this.canGoForward = function() {};
|
||||
this.canGoBack = function() {};
|
||||
this.back = function() {};
|
||||
this.reload = function() {};
|
||||
this.isFullScreen = function() {};
|
||||
this.isFullScreenLayout = function() {};
|
||||
this._changeState = function() {};
|
||||
this._setVisible = function() {};
|
||||
this.modifyURLatBackground = function() {};
|
||||
this.element = document.createElement('div');
|
||||
this.browser = {
|
||||
element: document.createElement('iframe')
|
||||
};
|
||||
this.show = function() {};
|
||||
this.requestForeground = function() {};
|
||||
this.getBottomMostWindow = function() { return this; };
|
||||
this.determineClosingRotationDegree = function() { return 0; };
|
||||
this.isTransitioning = function() { return false; };
|
||||
this.calibratedHeight = function() { return false; };
|
||||
this.isOOP = function() { return true; };
|
||||
this.ensure = function() { return this; };
|
||||
this.isDead = function() { return false; };
|
||||
this.reviveBrowser = function() {};
|
||||
this.setNFCFocus = function() {};
|
||||
};
|
||||
Loading…
Reference in a new issue