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

25 lines
535 B
JavaScript
Executable file

/* global module */
'use strict';
function FakeRingtones(client, origin) {
this.client = client;
this.origin = origin || ('app://' + FakeRingtones.DEFAULT_ORIGIN);
}
module.exports = FakeRingtones;
FakeRingtones.DEFAULT_ORIGIN = 'fakeringtones.gaiamobile.org';
FakeRingtones.prototype = {
client: null,
launch: function() {
this.client.switchToFrame();
this.client.apps.launch(this.origin);
this.client.apps.switchToApp(this.origin);
},
close: function() {
this.client.apps.close(this.origin);
}
};