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:
OverSu 2026-09-30 23:13:03 +02:00
commit b38dea0597
25901 changed files with 9982925 additions and 369 deletions

View file

@ -0,0 +1,112 @@
'use strict';
marionette('media playback tests', function() {
var MediaPlaybackActions, actions;
var MediaPlaybackChecks, check;
var FakeMusic = require('./lib/media_playback_fake_music.js');
var fakeMusicInfo = new FakeMusic();
var apps = {};
var system;
apps[fakeMusicInfo.origin] = fakeMusicInfo.path;
var client = marionette.client({
profile: {
apps: apps
}
});
setup(function() {
system = client.loader.getAppClass('system');
system.waitForFullyLoaded();
MediaPlaybackActions = require('./lib/media_playback_actions');
MediaPlaybackChecks = require('./lib/media_playback_checks');
actions = (new MediaPlaybackActions()).start(client);
check = (new MediaPlaybackChecks()).start(client);
});
test('could pull the tray', function() {
actions
.pullDownTray()
.pullUpTray();
});
test('should show now playing info', function() {
actions
.openMusicApp()
.playAlbumOne()
.pullDownTray();
check
.containerShown(true)
.nowPlayingText('Some Artist', 'Some Song');
});
test('should hide now playing info by stopping', function() {
actions
.openMusicApp()
.playAlbumOne()
.stopPlay()
.pullDownTray();
check
.containerShown(false);
});
test('should hide now playing info by exiting', function() {
actions
.openMusicApp()
.playAlbumOne()
.pullDownTray();
check
.containerShown(true);
actions
.killMusicApp();
check
.containerShown(false);
});
test('should update play/pause icon correctly', function() {
actions
.openMusicApp()
.playAlbumOne()
.pullDownTray();
check
.containerShown(true)
.isPlaying(true);
actions
.pullUpTray()
.switchToMusicApp()
.togglePausePlay()
.pullDownTray();
check
.isPlaying(false);
actions
.pullUpTray()
.switchToMusicApp()
.togglePausePlay()
.pullDownTray();
check
.isPlaying(true);
});
test('should hide controls when interrupted', function() {
actions
.openMusicApp()
.playAlbumOne()
.pullDownTray();
check
.containerShown(true)
.isPlaying(true);
actions
.pullUpTray()
.switchToMusicApp()
.interruptMusic()
.pullDownTray();
check
.containerShown(false);
actions
.pullUpTray()
.switchToMusicApp()
.interruptMusic()
.pullDownTray();
check
.containerShown(true);
});
});