VulpesOS/gaia/apps/system/test/marionette/lib/fullscreen_app.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

24 lines
485 B
JavaScript
Executable file

'use strict';
function FullScreenApp(client, origin) {
this.client = client;
this.origin = origin;
}
module.exports = FullScreenApp;
FullScreenApp.prototype = {
client: null,
launch: function() {
this.client.apps.launch(this.origin);
this.client.apps.switchToApp(this.origin);
// Wait until the app has told us it's fully loaded.
this.client.helper.waitForElement('body.loaded');
},
close: function() {
this.client.apps.close(this.origin);
}
};