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

56 lines
1.9 KiB
JavaScript
Executable file

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